A
Advait Mohan Raut
Hello friends,
I am new to Regex engine. I use Expresso to test RE. For a named
capturing test, I have following schema--
FullName --> first , surname OR
FullName --> surname , first , middle
eg. "advait raut" should return: first=advait surname=raut
and "raut advait mohan" should return: first=advait middle=mohan
surname=raut
For this I useed following RE.
^
(((<?first>[a-z]+)\s(<?surname>[a-z]+))|((<?surname>[a-z]+)\s(<?
first>[a-z]+)\s(<?middle>[a-z]+)))
$
But I dont get the valid match. Where am I mistaking ?
yours
Advait
I am new to Regex engine. I use Expresso to test RE. For a named
capturing test, I have following schema--
FullName --> first , surname OR
FullName --> surname , first , middle
eg. "advait raut" should return: first=advait surname=raut
and "raut advait mohan" should return: first=advait middle=mohan
surname=raut
For this I useed following RE.
^
(((<?first>[a-z]+)\s(<?surname>[a-z]+))|((<?surname>[a-z]+)\s(<?
first>[a-z]+)\s(<?middle>[a-z]+)))
$
But I dont get the valid match. Where am I mistaking ?
yours
Advait