I have a url like ‘abcd&page=0’. The last number changes dynamically. I have to replace the last number with a ‘counter’ value. How do I do this?
you can use variable to store the dynamic value and concatenate to url like…
the above url is stored in a variable say “url”. Also page= could be one or two digit.
url = ‘abcd&page="+counter.tostring+"’
Let me know if any issue…
You could use split method for your url string, like this:
It would give you the output you want:
See attached xaml file for reference:
LastCharacter.xaml (6.1 KB)
Say your variable is like
url = "abcd&page=[counter]"
You can use
where counterNo can be your integer variable for the last digits.
Thank you. I have other query. I have a string like MyString= “
Forum removes the html tags, but you can post them using the code snipped tag:
If you want to get ABC Corp from, for example:
<a href=‘abc.com’>ABC Corp</a>
you could use this Regex expression:
You can use it like this:
This should return a string with just ABC Corp
I was able to it with this:
I have a url like: myURL=“https://abc.com/overview/overview’”. I need to remove only the last ‘overview/’ so that the output will be myURL="https://abc.com/overview’. I have used myURL.Replace but it replaces both the instances. How do I achieve this?