Click here to Skip to main content
15,881,831 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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[^]!
 
Share this answer
 
Comments
Jibesh 7-Jan-13 13:33pm    
Right. Contains is good enough to meet this request. +5
Can you have a look at the link given below:

Link[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900