About
Pricing
Community
Teams
Start Free Trial
Log in
stuayre
asked on
3/1/2009
regexp to find a price?
Hi,
can anyone give me a regexp pattern to find all prices in this firmat £12.34
it could be any price but it allways starts with a £ and has 2 decimal places.
cheers!
Stu
Regular Expressions
4
1
Last Comment
stuayre
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Maciej S
3/1/2009
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
stuayre
3/1/2009
ASKER
thanks okilt, I just tried it here tho and it doesnt seem to work.
http://www.regular-expressions.info/javascriptexample.html
I added £3.99 and £13.99 in the middle of the subject string.
cheers
Stu
Maciej S
3/1/2009
Remove ^ and $ characters to match this in the middle of string.
stuayre
3/1/2009
ASKER
thank you!
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
http://www.regular-expressions.info/javascriptexample.html
I added £3.99 and £13.99 in the middle of the subject string.
cheers
Stu