What is the error in the regular expression?

How to change the regular expression

/\b\d+(?=[A-Z])/g

it did not choose the integers in after a round or a square closing brackets?

https://regex101.com/r/f2Iqjo/1
April 7th 20 at 15:23
1 answer
April 7th 20 at 15:25
Solution
(?<![\)\]])\b\d+(?=[A-Z])

Find more questions by tags Regular expressions