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

Popular posts from this blog

python - cx_oracle unable to find Oracle Client -

shader - OpenGL Shadow Map -

c# - Exchange 2010/2013 TransportAgent Content Conversion for Internal Recipients -