Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Simple?? preg replace

0 views
Skip to first unread message

UKuser

unread,
Jul 8, 2010, 6:47:19 AM7/8/10
to
Hi Folks,

Why won't the following:
{([\w]+)}

Match
<input type="text" name="stel" id="stel" class="inputtext"
maxlength="15" value="{Telephone}" />

I'm trying to use a templating type mechanism and then replacing them
with database field data.

It seems to match everything but HAVE tried \{([\w]+)\} and it doesn't
work.

Not sure what I'm doing wrong.

Thanks

A

UKuser

unread,
Jul 8, 2010, 7:01:46 AM7/8/10
to

Fixed it - I was missing a starting/end denoter

0 new messages