I have a subject line which i am using to extract first and last names of some users . sometimes it happens that there would be a middle name
I am able to successfully extract the first two and as the middle name is optional , how can i create a proper regex
sample subject :requesting the authorization for pxxx123 Fname Lname Mname- other details (Testing)
Regex used : (?<=[a-z]\d{3}\D{3}\s)(\S+)\s(\S+) : Successfully extracts first 2 strings after pxxx123(id) as they are always available.