Issues with string.replace

As I need to remove particular values from the string and I have different use case:
1.The value is in either single quotes or double quotes.
2.need to two or more values, if it is present in the string.

eg

  1. I need to remove https://sample.com from the file with the quotation mark , it might be single quotes or double quotes.
  2. In a particular string I need to check for the gxs:, oagis:, xsi: if any of the values are present remove those values.

can you provide the sample for more clarification.

you can refer the post now

you can try the below expression
System.Text.RegularExpressions.Regex.Replace(stringVar,“gxs:|oagis:|xsi:”,“”).Value

1 Like

image
how to resolve this?

Check with this one @agathiyanv

System.Text.RegularExpressions.Regex.Replace(stringVar,“gxs:|oagis:|xsi:”,"").Value

or

System.Text.RegularExpressions.Regex.Replace(stringVar,“gxs:|oagis:|xsi:”,"").ToString

Regards
Sudharsan

1 Like

Hi @agathiyanv ,
I am sending you a sample workflow for your reference please do have a look.
I hope it will help you.
Sequence8.xaml (4.9 KB)

Thanks & Regards,
Shubham Dutta

1 Like

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