Log in

View Full Version : Regular expressions


filburt1
03-21-2003, 05:24 PM
The regular expression for stripping out PHP tags from a string is:

/<\?(.*)\?>/siU

What is the expression for matching everything but text that matches this expression? Just:

/^(the whole expression)/siU

?

Dominick
03-21-2003, 07:05 PM
<a href="http://regexp.org/" target="_blank">http://regexp.org/</a>

good place for reg expression questions...

:banana:

-Dom

filburt1
03-21-2003, 07:08 PM
Pretty inactive site...