Saturday, 24 August 2013

Regex to match words in sentence after a pattern

Regex to match words in sentence after a pattern

I want to capture the group fish egg chicken beef in the sentence How much
is fish egg chicken beef ?. I tried with
how much is ((?>\w+))* \\?
But its only returning fish as the second group. What am I doing wrong here?

No comments:

Post a Comment