Regex to extract the read text only from below ss
It doesnt work for https://forum.uipath.com/
link
regex can be done in many ways
can you explain what was the output your are expecting ,if you did not got any solution
cheers
Hi @Chirag12
Use the string manipulation to extract the output from the Input text.
- Assign -> InputStr = "https://en.wikipedia.org/"
- Assign -> Output = InputStr.Split(".")(1).toString.trim
The Output Variable is the output extracted which contains wikipedia
Check the below workflow for better understanding.
You can use the regular expressions too.
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=\.)[A-Z a-z]+(?=\.))”)
Hope it helps!!
if there are any other values like spaces or dots or numbers in between it will aslo take that
meaning of .*
cheers
In this case you can use the string manipulation that I have provided above.
- Assign -> InputStr = "https://en.wikipedia.org/"
- Assign -> Output = InputStr.Split(".")(1).toString.trim
and you can use the below regular expression for both websites.
System.Text.RegularExpressions.Regex.Matches(yourstringinput.ToString,“((?<=\/\/\w*\.)[A-Z a-z \d]+(?=\.\w*\.*\w*\/))”)
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.