The following is a simplified example of a RegEx replace that one of my customers is trying to perform.
Find Expression: \b+([^ ]+).+
Replace with: $1
The output is:
while it should be:
I tried the same expression in Visual Studio and it results in the correct output.
We tried various versions of the find expression, adding $ to the end or ^ to the start etc.
Even tried replacing the . with [\s\w] and specifically trying to catch the line end with [\r\n] to ensure that it did not 'match' the line end.
The only thing that worked was to change the \b+ to \s+ which works OK for the specific situation where the lines start with a space ... but in some cases they dont. (and using \s* at the start produces the same incorrect results as \b+.)
Could you please take a look at the RegEx engine you are using.