Hi All,
I need regex for below code and extract 5digit after $ symbol
https://inpm.work.com/xyzdmn/d/inst/1$123/1234$**47822**.htmld#TABINDEX=0&SUBTABINDEX=33
i bold the value above one i need output 47822
Thanks,
vicky
Hi All,
I need regex for below code and extract 5digit after $ symbol
https://inpm.work.com/xyzdmn/d/inst/1$123/1234$**47822**.htmld#TABINDEX=0&SUBTABINDEX=33
i bold the value above one i need output 47822
Thanks,
vicky
Hi @Vicky_K
Input= "https://inpm.work.com/xyzdmn/d/inst/1$123/1234$47822.htmld#TABINDEX=0&SUBTABINDEX=33"
Output= System.Text.RegularExpressions.Regex.Match(Input,"(?<=\$)\d+(?=\.)").Value
Hope it helps!!
Hi @Vicky_K
Use the below regular expressions to extract the required output.
- Assign -> Input = "https://inpm.work.com/xyzdmn/d/inst/1$123/1234$**47822**.htmld#TABINDEX=0&SUBTABINDEX=33"
- Assign -> Output = System.Text.RegularExpressions.Regex.Match(Input,"(?<=\$\S*)\d{5}").Value
Or
- Assign -> Input = "https://inpm.work.com/xyzdmn/d/inst/1$123/1234$**47822**.htmld#TABINDEX=0&SUBTABINDEX=33"
- Assign -> Output = System.Text.RegularExpressions.Regex.Match(Input,"(?<=\$\*?\*?)\d{5}").Value
Hope it helps!!
Hi @Vicky_K
System.Text.RegularExpressions.Regex.Match(Input,"(?<=\$.*)(\d{5})(?=.*\.)").Value
Happy Automation!!
Hi
Try this reg ex in assign activity
strval = System.Text.RegularExpressions.Regex.Match(Input,“(?<=$**)\d{5}”).ToString
Thank you
Hello,
Please Refer Below Screenshot
str_data=https://inpm.work.com/xyzdmn/d/inst/1$123/1234$**47822**.htmld#TABINDEX=0&SUBTABINDEX=33
str_RequiredData=System.Text.RegularExpressions.Regex.Match(str_data,“\d{5}”).Value.ToString