Conveyed Address - Vivekanada nagar gokul road, N Humberside how to trim out Conveyed Address - after we used get text
how to use it in type into activity
Hello @madhavraichur25
Use the String Replace method
YourString= "Conveyed Address - Vivekanada nagar gokul road, N Humberside"
YourString.Replace("Conveyed Address -","") --> it replace the the Specific text
Try this
"Conveyed Address - Vivekanada nagar gokul road, N Humberside".Replace("Conveyed Address -","").Trim
[CheatSheet] - System.Text.RegularExpressions | RegEx - News / Tutorials - UiPath Community Forum
strText = your Text
strPattern = "(?<=Conveyed Address).*"
System.Text.RegularExpressions.Regex.Match(strText, strPattern).Value.Trim(" -".ToCharArray)
Hi @madhavraichur25
Try this
Input= "Conveyed Address - Vivekanada nagar gokul road, N Humberside"
Output= System.Text.RegularExpressions.Regex.Match(Input,"(?<=Conveyed\sAddress\s\-\s).+").Value
Hope it helps!!
In type into use this where str is the string variable where the string is stored
Str.Replace("Conveyed Address -","").Trim
Cheers