Regular expressions problmm

i have a input like
SSC Marklist / Provison Marklist
i want output like
SSC
Provision

with regualr expressions plz help me

Hi @katta_nikhil

You can use string manipulation to extract the desired data:

Hope this helps,
Best Regards.

no bro… i want only using regular expression

@katta_nikhil

Assuming that you are taking the data for ‘Marklist’, you can try this RegEx:

^(\w+)\s+Marklist\s+\/\s+(\w+)\s+Marklist$

image

Best Regards.

Hi @katta_nikhil - Try the attached workflow

SampleWorkflow.zip (4.1 KB)

Output

Picture1

1 Like

Hello @katta_nikhil
Try this

System.Text.RegularExpressions.Regex.Matches("YourString","[A-Za-z]+(?=\sMarklist)")(0).tostring.trim  -----> SSC
System.Text.RegularExpressions.Regex.Matches("YourString","[A-Za-z]+(?=\sMarklist)")(1).tostring.trim -----> Provision

image

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.