Hi,
I need to extract “4500002003” from the sentence “Standard PO created under the number 4500002003”
Kindly help me.
Hi,
I need to extract “4500002003” from the sentence “Standard PO created under the number 4500002003”
Kindly help me.
Quick Dirty:
Assign Activity:
strCleansed =
System.Text.RegularExpressions.Regex.Replace(strInVar, "\d+","")
I need to extract the number also separately
then regex and groups will help
Hi,
You can use below expression
System.Text.RegularExpressions.Regex.Match(yourInputString, “\b\d+\b”).Value
You can use split function.
Split the string with space and then extract last index of the array. In this case index will be 6.
For ex:
Var = Standard PO created under the number 4500002003
Assign
Var_Arr= var.split(" ")
Var = Var_Arr(6).tostring
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.