i have a input like
SSC Marklist / Provison Marklist
i want output like
SSC
Provision
with regualr expressions plz help me
i have a input like
SSC Marklist / Provison Marklist
i want output like
SSC
Provision
with regualr expressions plz help me
You can use string manipulation to extract the desired data:
Hope this helps,
Best Regards.
no bro… i want only using regular expression
Assuming that you are taking the data for ‘Marklist’, you can try this RegEx:
^(\w+)\s+Marklist\s+\/\s+(\w+)\s+Marklist$
Best Regards.
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
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.