regex - HowTo prevent matching an empty string ('') at the beginning of a string include match within the string -


i trying match name following regex

/^[a-za-zàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,\'\-]+$/ 

this matches following examples:

  • tom dooley
  • d'agaene-venus
  • tom

however, when application starts don't want validator match /''/ string in text input, want match /'/ in body of name in d'agaene above.

how best achieve this. have tried many options without success. suspect negation should include bu have not gotten it.


Comments