.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

javascript - Iterate over array and calculate average values of array-parts -

ASP.NET Javascript: window.open won't work twice -

jquery - Opera does not change the height of the page. Why? -