Page 1 of 1

Need a simple regex

Posted: Wed Feb 10, 2010 9:15 am
by klevis miho
Ok the string is like this:

$string = 'Expiration date: bla bla <br>Expire on: bla bla <br> expire: bla bla <br>';

I want a regex to catch just the 'bla bla'.

What I have is this: '#Expir(.+?)<br>' which doesn't give me the desired result.

I would appreciate any help and suggestion.

Re: Need a simple regex

Posted: Wed Feb 10, 2010 9:23 am
by klevis miho
Ok no need now, I figured it out myself lol:

'#exp[a-z\s]+:(.+?)<br />#si'