Hi there
How can i achive this
I need to add the below rule to this regex ^[\s-a-zA-Z]{2,40}
Blanks and hyphens must be preceded and followed by alphabetic characters.
Many thanks
Dipendra
^(?=[\sa-zA-Z-]{2,40}$)(?!^[\s-]|.*(?:[\s-]{2}|[\s-]$)).*$
dipendra: Blanks and hyphens must be preceded and followed by alphabetic characters.
Here's how I understood that requirement:
Thank you for your help.