Thursday, 5 September 2013

Quick Regex Help - JQuery

Quick Regex Help - JQuery

I am trying to use regular expressions to find part of a string from a
string,
So say for example my string is:
string = "Hello my name is carl how are you doing?";
And I want to match the name "carl", how would I go about doing that?
This is what I have got,
.*?(?=\show)
My problem is NOT matching the text "Hello my name is "
Cheers
Carl

No comments:

Post a Comment