Hi everyone,
I have a problem manipulating an alphanumeric string.
When browsing a web tool, once you reach a certain point, the bot should remove, if present, the string, “Sconto 15x12”
There is a problem. (at least for me)
This string could be anywhere.
at the beginning, at the end.
it could be all uppercase or all lowercase.
and the remaining text may change.
ex:
Web business Sconto 15x12 >>>>> I need Web business
Sconto 15x12 - Web business >>>> I need Web business (or - Web business)
SCONTO 15x12 web trial >>>>>> I need web trial
Sconto 15x12 - solution phone >>>>> i need solution phone (or - solution phone)
solution phone & web SCONTO 15x12 >>>> i need solution phone & web
In the same cell, I then have to write the text, without the item “Sconto 15x12” in all its variants.
Can anyone help me in this case too?
aaron
I’m on a WEB GUI.
I collect this data with a “get attribute” directly from the page…
and I have to replace it with the same string, without “SConto 15x12”
Basically it is a string and will remain a string.
If it’s easier, I can collect the entire grid as a table, though.
Assign-> Input = "SCONTO 15x12 web trial >>>>>> I need web trial"
Assign-> Input = System.Text.RegularExpressions.Regex.Replace(Input,"sconto\s*15x12","",System.Text.RegularExpressions.RegexOptions.IgnoreCase)