PHP regex optimize -
i've got regular expression match between <anything>
, i'm using this:
'@<([\w]+)>@'
today believe there might better way it?
/ tobias
\w
doesn't match said, way, [a-za-z0-9_]
. assuming using "everything" in loose manner , \w
want, don't need square brackets around \w
. otherwise it's fine.
Comments
Post a Comment