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
Post a Comment