Regex capture group nesting -
i've started learning regex , i've been stuck on this lesson while now.
i don't quite understand why below 2 won't work.
^(.+(\d+))$ ^([a-za-z_]+(\d+))$
both work ok, need space before nested group.
your regex work if text example: jan1987
. examples in link posted like: jan 1987
try:
^(.+ (\d+))$ ^([a-za-z_]+ (\d+))$
Comments
Post a Comment