.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

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -