Regex: match words with or without hyphens and apostrophes

Online spiros

  • Administrator
  • Hero Member
  • *****
    • Posts: 745190
    • Gender:Male
  • point d’amour
    • spiros.doikas
    • greektranslator
    • doikas
    • lavagraph
    • Greek translator CV
Regex: match words with or without hyphens and apostrophes

[\w'-]+

or

(?=\S*['-])([a-zA-Z'-]+)


 

Search Tools