You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem I ran into was that the [^2] after "Bar" remained unmodified in the output.
I noticed that, in the source code, two of the three regexes end with "/mg", and the third only with "/m". I fixed the issue by also using "/mg" on the third regex in my copy of the code. The "g" is there to replace all matches, not just the first one.
If you agree with this solution, I think it would be nice to also apply this in your code.
The text was updated successfully, but these errors were encountered:
I used this code on a document like this:
The problem I ran into was that the [^2] after "Bar" remained unmodified in the output.
I noticed that, in the source code, two of the three regexes end with "/mg", and the third only with "/m". I fixed the issue by also using "/mg" on the third regex in my copy of the code. The "g" is there to replace all matches, not just the first one.
If you agree with this solution, I think it would be nice to also apply this in your code.
The text was updated successfully, but these errors were encountered: