xhister
10 months ago

Regex is almost complete

Posted 10 months ago by xhister

I have a regex, which is written in pcre (the php standard for regex creating, if I'm not mistaken). What I'm trying to accomplish is validate Full Name input field with the help of regex. The thing is that I'm trying to make it have only one space, exclude some cyrillic characters with negative lookahead and add a range of cyrillic characters. Each name must start with capital letter for which purpose I make use of the ^\p{Lu}, but when applying the same technique to my second capturing group it doesn't work.

This is the website where I test my regex: https://regex101.com/r/vD5iH9/203

Can someone guide to where my problem is ?

Please sign in or create an account to participate in this conversation.