Having in account my last question, another problem emerged: I also need to find a pattern for any number, with no limit of digits. I also made some changes: I now have a test table with a column containing only numbers and what I intend to do is to those records who do not match the pattern in the previous question, I want them to follow it again, but including numbers with more than one digit.
Just to provide more context, this is the initial state of the table:
What I tried was to simply add the " * ", like below:
UPDATE dbo.Test
SET ToJsonTestValue = '["' + ToJsonTestValue + '"]'
WHERE ToJsonTestValue NOT LIKE '[[]"[0-9]*"[\]]' ESCAPE '\';
and at a first glance it seemed ok, in the first execution of the query, it just added the pattern I wanted. But when I executed the query a second time, in order to verify that those who already had the pattern would be ignored, the result was this:
I also tried without the " * ", which works fine but then again, it wont cover all cases (numbers with more than one digit). Without the " * " makes the one digit numbers with the pattern be ignored, which was good, but not sufficient for the task. This being said, is there a way to solve this stress? Thanks in advance.

