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

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -

Hard vs. Soft Water: What's The Difference?

The Ten Most Livable Cities In The World