2
I need to match the "test" text, but the string will not always start with a fixed number of characters/digits, it may start with any number of characters, example:
001 test
0002 test
20458 test
How do I get the regexp below to work?
(?<=^\d+)test
That look-Behind (?<=^\d+) does not work, gives invalid expression, does not let use the quantifier d+ inside the look-Behind, if I do (?<= d d d d) it gives match only in the first situation. I wish it could be "variable" the number of digits/characters before the match text.
There is how to create a Behind look using +, * or {1 quantifiers,}?
Which language, if I’m not mistaken javascript has no lookbehind;;;
– MagicHat
In fact, closing operators are invalid in lookbehind.
– Wtrmute
do not think it is JS, in the question itself he states that the lookbehind worked when changing the d+
– Paz
JAVA / C#language, in javascript I am aware that there is no lookbehind.
– Thiago Hencke