String manipulation

Unbenann1t

Hi at all,
I have this string in my output of the message box. Is there any possibility to only get the marked number?
Thanks
Tobi

1 Like

Hi @tobschroer ,

Get that all value in string variable, then,
Create a" string array variable=Stringvariable.Split({“BKV;”,“15.”},StringSplitOptions.None)" then
get that particular value by using “StringArrayVariable(1)”.

Thanks & regards,
Spark::wink:

3 Likes

you can achieve this in many ways but u need to analyse your input before automation. because you need to concentrate more on pattern .

2 Likes

You could also use Screen Scraping with native scraping method :)That’ll work too :slight_smile:

Hello ,

What do you mean by “StringArrayVariable(1)”. ?

Array of string

@tobschroer
Use substring function
follow the following screen shots, and in message box pass AbcNew Variable

Capture

2 Likes

StringVariable=BKV; 5500164649 15.06.2018 901783
StringArrayVariable=StringVariable.Split({" "c},StringSplitOptions.None)
This will split the string based on spaces between them.
We need the second string so… StringArrayVariable(1)… will be give 5500164649.