Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends
I have to find the words like
Dani A. B
Sérgio Y. k

I have tried the pattern like
[A-z0-9]++ [A-Z]\\.[A-Z]\\

This pattern find only Dani, where else second word is not found
how to the both the words
Posted

1 solution

Try:
\w+\s[A-Za-z]\.[A-Za-z]
You may want to add a '$' to the end to mark "end of line" is required. Without your full sample data it's difficult to tell.
 
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