bio data
Name:
Rajesh kumar
Date of birth
From above text i need to get only (Rajesh Kumar ) using regex. Please advice me for this scenario. I have tried the regex (?<=Name:)\n(.*)
Thanks,
bio data
Name:
Rajesh kumar
Date of birth
From above text i need to get only (Rajesh Kumar ) using regex. Please advice me for this scenario. I have tried the regex (?<=Name:)\n(.*)
Thanks,
HI @munishraj.r
Welcome to UiPath community
Try with this expression
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=Name:)\n.*").Tostring.Trim
Regards
Gokul
To Get the Group value from the expression
System.Text.RegularExpressions.Regex.Match(YourString,"(?<=Name:)\n(.*)").Groups(1)
Regards
Gokul
in addition we would recommend to handle defensive the windows linebreak \r\n by the following pattern: "(?<=Name:)\r?\n(.*)"