Wild card searches
Mark Brownell
gizmotron at earthlink.net
Wed Jul 23 18:35:00 EDT 2003
On Wednesday, July 23, 2003, at 03:35 PM, Alex Rice wrote:
> You get "apple xxxxx" because the regex I wrote is greedy. You could
> modify the regex so it's not greedy. (I think "greedy" is the term
> they use, but not sure)
>
> "![^!/]+/!"
> AHA! That works. So... I guess replaceText() replaces all matches by
> default, which is why it doesn't understand the "(?g)" global
> substitution modifier- it doesn't need to!
>
> Everyone should learn Perl regular expressions :-) It's well worth the
> trouble!
>
> Alex Rice
Alex,
This regEx stuff is very cool. Now I have a new area of optimizations
for my pull-parser experiments.
Thanks,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 693 bytes
Desc: not available
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20030723/2e84741b/attachment.bin>
More information about the use-livecode
mailing list