Regular Express

Courtney Christensen courtyyoung at gmail.com
Sun Jul 1 12:50:31 UTC 2007


You may want to use [^}]* instead of the second .*
 \{.*\b(div|hash)\b[^}]\}

That says match any non } character, I'm having to do a lot of tag parsing
recently and I often have two sets of tags that my regex in its infinite
wisdom decides to overlap.

Good luck,
-Courtney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20070701/a6e94779/attachment.html>


More information about the ubuntu-users mailing list