help with regular expression

A place to try and solve your RegEx problems.

help with regular expression

Postby fgiorgio » Thu Dec 15, 2016 4:00 pm

I would like to find aand replace exactly the number on each row.
For example
9 must be replaced by 500
59 must be replaced by 501
599 must be replaced by 800

Each number on the left is an exact phrase. This means that if I have 599, the first 2 lines MUST be skipped and it should just be replaced by 800.
What is the regular expression on SEARCH?

Hope it is clear my question
Thanks for your help
Posts: 1
Joined: Thu Dec 15, 2016 3:55 pm

Re: help with regular expression

Postby DigitalVolcano » Sat Dec 17, 2016 5:04 pm

to find the exact number you can use the \b word boundary identifier


Code: Select all

Will find 9 and not 599
User avatar
Site Admin
Posts: 884
Joined: Thu Jun 09, 2011 10:04 am

Who is online

Users browsing this forum: No registered users and 3 guests