[thelist] [php] preg_replace text links?
kris burford
kris at midtempo.net
Mon Nov 3 03:34:09 CST 2003
hi,
i'm trying to get my head around some regex in php which i've lifted (with
only minor understanding) from "mastering regex expressions".
what i'm trying to do is scan user submitted text (parsed through
htmlspecialchars) pick out any links and link 'em up.
the starting pattern (from the book) is at
http://www.midtempo.net/regex.html but it just gives me "Warning: Delimiter
must not be alphanumeric or backslash". i've tried countless additions of
backslashes and googled for help, all to no avail...
has anyone done this before? if so, where am i going wrong?
tia
k
More information about the thelist
mailing list