I need to get this match "Abcd" for the string "Abcd 23 p. 421 fd." I wrote the pattern "^(.*)\s+\d" but it returns match with last digit like "Abcd 23 p. 42". How to get first digit match?
P.S. I read this solution but don't get it. How to use | subexpression to make pattern non-greedy.
Aucun commentaire:
Enregistrer un commentaire