0

Hi I have a requirement to remove every occurrence of the "LIP_CUT,number.number," out of pages of code.

I am newbie to this type of argument structure and cannot get any results so far.

Any help appreciated please.

Regards

Ian

Typical line layout below

3BOLTA,4374.00,DIMPLE,4525.15,LIP_CUT,4525.15,3BOLTA,4525.15,DIMPLE,4974.00,LIP_CUT,4974.00,3BOLTA,5449.50

Needs to read

3BOLTA,4374.00,DIMPLE,4525.15,3BOLTA,4525.15,DIMPLE,4974.00,3BOLTA,5449.50

3
  • Dave, You're a star!
    – Ian Cade
    Oct 7, 2014 at 13:59
  • I've been trying blindly with \'s .'s and brackets for some time this morning and got nowhere.
    – Ian Cade
    Oct 7, 2014 at 14:00
  • This worked straightaway with the correct result.
    – Ian Cade
    Oct 7, 2014 at 14:01

1 Answer 1

0

You can do a find and replace, but select 'Regular Expression', and put in the following in the 'Find what' box:

LIP_CUT,[0-9]+\.[0-9]+,

Make sure nothing is in the 'Replace' box.

So, just by way of a small explanation:

  • '+' means 1 or more occurances
  • '\.' means I'm actually looking for a '.' - just '.' on its own means any character
  • square brackets allow me to specify a range of possible characters - in this case anything from 0-9

More info can be found here if you find this stuff fascinating.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .