Page 1 of 1

Need to extract two possibilities

Posted: Wed Mar 28, 2007 5:58 am
by mzfp2
Hi,

Its probably the simplest of expressions but my only hope is probably this forum!

I was wondering if and how I could extract a string based on two possibilities:

The regular expressions should match either this:

90 lenses - £27.00

or

(9 lenses) - £54.00

is it possible to match both in one expression?, &pound must be matched as that and not the symbol itself.

Any help on this would be really appreciated!

Musaffar

Posted: Wed Mar 28, 2007 6:15 am
by Kieran Huggins
what are you hoping to get out of it? Do you want values returned or just to know if it matches?

what have you tried so far?