Regex capture group nesting -


i've started learning regex , i've been stuck on this lesson while now.

enter image description here

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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -