Re: Regex - how to match until something
- From: Mladen Gogala <gogala@xxxxxxxxxxxxx>
- Date: Sun, 30 Apr 2006 04:27:40 GMT
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
.
- References:
- Regex - how to match until something
- From: veg_all
- Regex - how to match until something
- Prev by Date: Re: to optimize a select join
- Next by Date: Re: Regex - how to match until something
- Previous by thread: Re: Regex - how to match until something
- Next by thread: MYSQL table backups
- Index(es):