Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- PREG matching
September 7, 2004, 2:10 am
rate this thread
- or -
where the 1 and 'right' become parameters.
So far I have:
preg_match_all('#<image=(.+?),(.+?)> | <image=([^>]+)#msi', $body,
$image_count = preg_match_all('#<image=([^>]+)#msi', $body, $image_tags);
I'm trying to see if I can get them both into the one regexep, I assume
I have to use an alternative | somewhere, just not sure where.
Can anyone help?