Re: FN-FORUM: ereg patterns
date posted 16th August 2004 11:42
Hi,
Thanks, that was just what I needed - works perfectly.
Best regards,
Joe.
On 16 Aug 2004 11:12:46 -0000, Martin W Brown
[EMAIL REMOVED] wrote:
>
> Hi Joe,
>
> This seems to work:
>
> ereg_replace(' (\*[A-Za-z0-9_]+\*) ', '\\0', "This is a string
> with *words* in it");
>
> Think this is what you want. If you don't want the * in the output then
> move them outside the ().
>
> HTH
>
> Martin
>
>
>
>
> --
> Freelancers, contractors earn more with Prosperity4
> Call 0870 870 4414 or visit www.prosperity4.com
> and benefit from Inland Revenue approved expenses today.
>
> To advertise here: http://www.freelancers.net/advertising.html
>
>