.net - Vb.Net - Having Problems Extracting Wildcard Value -
i've been having problems extracting value of regex in string. have string several regex expressions , need value of each expression's match. thing though, it's not returning last match correctly. example:
regex pattern: i play (\s+.*?) , (\s+.*?)
string: play guitar , bass
the program returning value of first expression "the guitar" it's returning value of second expression "the" instead of "the bass". there way fix this?
try: i play (\s+.*) , (\s+.*)
.
Comments
Post a Comment