How to use string.split method


#1

Hi,

I’ve been scraping some data off a stores web page but I have one problem. The site that I’m scraping information from has no comma between their prices and i would need to get the comma between the euros and the cents.

As a example one price is showed as 2 79 rs to be displayed as 2,79€ rs, I know i need to use string manipulation to accomplish this but I have not figured out how to do it.


#2

just use string.split() . then you can write line the result .


#3

@Paranoid can you please share/paste the split function you have used?


#4

Hi @Paranoid,

Have a look at example of split of string based on new Line as delimiter.

All you need to do is “YourString.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries)” which will return a string array, and try again.

Let me know whether it works for you or not.

SplitExampleForNewLine.xaml (10.1 KB)


#5

Thanks for all the answer, I actually got it solved with the help from the uipath support!