Click here to Skip to main content
14,326,074 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hi all,
Please help me to find regex:
I have value like: 'Martin Lucas'
and my input string is : 'My name is Martin Lucas, i am working with Mr ABC'.
now i have to match whether the name 'Martin Lucas' is exist in given string.
please suggest the regular expression
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 2

You don't need regexp for that. The string My name is Martin Lucas, i am working with Mr ABC contains the string Martin Lucas. Use String.Contains[^]!
   
Comments
Jibesh 7-Jan-13 13:33pm
   
Right. Contains is good enough to meet this request. +5
Rate this:
Please Sign up or sign in to vote.

Solution 1

Can you have a look at the link given below:

Link[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100