Avatar of stuayre
stuayre
 asked on

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

Avatar of undefined
Last Comment
stuayre

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Maciej S

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

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

Remove ^ and $ characters to match this in the middle of string.
stuayre

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