help with regular expression

A place to try and solve your RegEx problems.
Post Reply
Posts: 1
Joined: Thu Dec 15, 2016 3:55 pm

help with regular expression

Post by 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
User avatar
Site Admin
Posts: 1013
Joined: Thu Jun 09, 2011 10:04 am

Re: help with regular expression

Post by 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
Post Reply