Get numeric value after '/' symbol

I have string array like as below,
Invoice Details Invoice 1/1
Invoice Details Invoice 1/ 3
Invoice Details Invoice 1 / 2

I want the total number of invoices from above string array to be printed in message box.

@akshay765 Can you elaborate what is the output you are expecting from the above string.

@ indra The numeric value after ‘/’ symbol

@akshay765 You can do by using split operation can you specify from where you are getting this value.

1 Like

hi @akshay765,

Split string operation or using regex are the best choice for your case.

1 Like

@ indra I get this values from txt file


Use for each and pass the array and change the argument type to string.

Then in Message box : string.split(yourString,“/”)(1) or YourString.split("/"c)(1)

Using regex: “BackwadrSlash/\d” will give you the required output.

try this and let me know

hi @akshay765
hope the attached workflow helps you. (1.9 KB)

1 Like

@Sriram07 thank you it worked fine.

1 Like

@akshay765 Here is a xaml for future references. (11.4 KB)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.