Ah, now I see. I read the text you wrote instead of the regex because, you know, I'm not a regex engine. ;)

Of course *had* I properly read the regex you wrote, I would have figured it out.


:-)


Couldn't you use a case-insensitive match though to avoid the [Tt][Mm][Pp][Ll] part?


yep - but it would probably be about 10 times slower, as m//i makes a copy of the input string.

There are a number of places on the web which document this fact - until the perl regex engine gets smarter, then the [...] syntax is the best way to go

Well, gee - you learn something new everyday! - Thanks!



Pete






-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to