Extract text from String to map in Excel

Hello All,

we want Extract Specific text from String and Map in in Excel as shown in Image attached .
We want extract all Serial no and Model no from Text so we can map then in excel.
So kindly help us with logic to implement same.

image

You can get the value with Regex like this


Use assign activity to get the Regex matches like this
For example

out_matches = System.Text.RegularExpressions.Regex.Matches(Strinput.ToString, “your Regex expression”)

Check this out for more insights

Hope this helps

Cheers @Ripusudan_Sharma

Hi,

Can you try the following sample?

mc = System.Text.RegularExpressions.Regex.Matches(strData,"Model:\s*(?<MODEL>.*?)\s+SN#:\s*(?<SN>\w+)")

Sample
Sample20231010-1aL.zip (3.3 KB)

regards,

Hi @Ripusudan_Sharma ,
You can get text by regex then compare them
or
use string replace,

regards,