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

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -