Link to home
Start Free TrialLog in
Avatar of baghlaf
baghlafFlag for Saudi Arabia

asked on

Regular Expressoin for first name after comma

i have this list of lines
Mohhamd,ali khaled  i need to return afer comma ali
Anzi,moh@@ee salem  i need to return after comma moh@@ee
Moha,salem i need to return salem

i  need to use regular expression pattern.

i have used this pattern ,\w+\s but it's not work for Anzi,moh@@ee salem   because there is a non-word character in this moh@@ee

see that @@ is not @@ exactly but it is an arabic character but the web site translated as @@.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of baghlaf

ASKER

really, you are very good.

Thanks