TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Burgett
from: Doug Nazar
date: 1996-08-13 23:46:54
subject: VAC++ and it`s compiled regular exp

Hello Mike!

Tuesday August 13 1996 06:31, Mike Burgett wrote to Doug Nazar:

MB> I don't know that the string will always be so simple though. If I wanted
MB> to find files matching a _filemask_ of zee??11?.t* for example, I could do
MB> it with (I think :) a regex of zee..11.\.t.* which would be a bear to
MB> do without the regex code.  I was just trying some simple tests to see that
MB> the code was working.

Hmmm.... IMHO regexs are overkill for filename matching. I would probably
have used XSTRCMP.c from Snippets. It supports ? and * and you don't need
to "translate" the pattern. Regexs are wicked in an editor
especially for search & replace. 


Doug

--- GoldED/2 3.00.Alpha1+
* Origin: Realm of the Dragons - `Where thy mind hath no limits' (1:250/516)
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: 250/516 101 99 3615/50 396/1 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™.