How to get specific characters from string

hi Guys,
this is scrapping data string:
Challan - JPR2018-19/0112
Tax Invoice - JPR2018-19/0176

Expected string
JPR2018-19/0112

Please give me solution

Hi @smita.mobifly
here you go buddy
like this

if your input text is like this(of two lines)
intext = “Challan - JPR2018-19/0112
Tax Invoice - JPR2018-19/0176”

Then like this buddy
outtext = split(intext.split(environment.newline.toarray())(0)," - ")(1).ToString.Trim

and it worked buddy


image

or

if you have like single line like this
intext = “Challan - JPR2018-19/0112”

then like this buddy
outtext = split(intext," - ")(1).ToString.Trim

Cheers @smita.mobifly

Did that work buddy @smita.mobifly

yeah its work…thanku so much …:slight_smile:

Fantastic
Cheers
Keep going buddy @smita.mobifly

1 Like

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