Regex for data in next line

Hi everyone,

My requirement , i have an email and i have to read the mail and extract certain data from it
and i need to use Regex for that

eg : ±---------------±----------±------------- l
l customerID l regno----l phone no. l
±---------------±-----------±-------------+
l 34567856 l 456784 l 86748688 l

how to i extract customer ID , regno and phone no.
which will be changing for different email using regex

Thanks in advance!!

@ppr @Palaniyappan

Hi @kavya.s16 ,

Could you let us know if there would be only one row of Data or would there be multiple rows ?

Maybe as a First Check you could do with the below Regex :

\|(?<customer_ID>\s*\d+\s*?)\|(?<regno>\s*\d+\s*?)\|(?<phoneno>\s*\d+\s*?)\|

3 Likes

@supermanPunch thanku will try this

1 Like