samedi 11 avril 2015

repeating a regular expression pattern


Vote count:

0




I am attempting to write a regex to match numbers in a given string, the below manages to retrieve the first number within the string, however it stops there, I would like it to match all numbers within the file, thanks in advance


regular expression :



([^\s+\w+\n\r]*(\d))+


string : hi there this is 1 yes this is 2


actual match : 1 ideal match : 1,2



asked 2 mins ago







repeating a regular expression pattern

Aucun commentaire:

Enregistrer un commentaire