Re: Regex - how to match until something



On Sat, 29 Apr 2006 13:46:31 -0700, veg_all wrote:

How do you replace an occurence until a certain point: You can see my
example code below and the output:

Would something like this:

$string1 = preg_replace ( '/Hello.*(today)/', 'Hello *** $1' , $string1);

be what you're looking for?


--
http://www.mgogala.com

.