I'm having trouble getting this regex replacement code to work "again"
I believe this used to work in /net but it never worked in Expresso ( - meaning it might never actually worked properly)Expresson Screenshot
I have text string I need to remove any spaces or Tabulators between the [;] and the [G30] - but not the line feeds!
N10 ; G30
after the replacement --the result should be
N10 ;G30
Here is what I came up with back in the days
;\u0020*\u0009*(?:\w+\n)
If found, this should be replaced by a simple ;
I attached the Expresso screenshot as it might make things easier to understand
Any ideas on how to make this work ?
Maybe I'm not understanding the question but if the goal is to remove whitespace before or after the
;could you do:I'm not sure about the newline issue, but perhaps there is a feature in the Expresso program on how to handle start-of-line or text (normally this is something like
^...$or/A.../z).If you want the excel
A1formats per line then maybe something like the following would work:^([A-Z]+\d+)[\u0020*\u0009]*;[\u0020*\u0009]*([A-Z]+\d+)$Note in the above I am using the 'anchors' of
^and$.