.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

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -

jQuery Ajax Render Fragments OR Whole Page -

java - Why is BlockingQueue.take() not releasing the thread? -