php - Regex for getting URL-compatible directory? -


i have internal link system on site, , use detect text after markup:

'/__il__(.+)/'

the problem picks characters "<", meaning if uses line break, result this:

http://www.[sitename].org/[user's url] <br/>

what better regex expression that? thanks.

try instructing regular expression include characters character begins html tag:

'/__il__([^<]+)/'


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -