| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | VAC++ and it`s compiled regular exp |
Hi Doug, Replying to a message of Doug Nazar to Mike Burgett: MB>> Exactly, except that I found that I could skip the '*'s completely MB>> and get the results I wanted. (since I don't care where the MB>> match occured, unless the expression was anchored to one end or MB>> the other, which still doesn't require the '*' unless I care MB>> about something later in the expression like 'zee.*dat$' DN> Hmmm.... sounds like you could just use strstr() which is ANSI DN> compliant . Regular expressions are overkill for finding a simple DN> string in another. I don't know that the string will always be so simple though. If I wanted to find files matching a _filemask_ of zee??11?.t* for example, I could do it with (I think :) a regex of zee..11.\.t.* which would be a bear to do without the regex code. I was just trying some simple tests to see that the code was working. MB>> I missed the _0_ or more in the regex explanation until the next MB>> morning, after I'd sent the mail, when it jumped out and fairly bit MB>> me.... DN> Ain't that always the case. When I get stumped I usually that the dog DN> for a walk or something. I usually have the answer by the time I get DN> back to the computer. The subconscious mind is a wonderful thing, solves most of the really hard problems for me. Thanks, Mike --- FleetStreet 1.17+* Origin: Common Sense BBS - 510.713.7336 Newark, CA (1:215/705) SEEN-BY: 50/99 270/101 620/243 625/100 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/888 800/1 @PATH: 215/705 270/101 712/515 711/808 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.