Hello Guys,
Following is my string :
GSTIN : 27AAC CA803 3E1ZZ
AT T COMMUNICATION SERVICES INDIA PVT. LTD.
MAHARASHTRA
:: Dispatch From ::
4th Floor Platina C - 59
G Block Bandra-Kurla Complex, Bandra East,
Mumbai,MAHARASHTRA-400051
wanted to extract only first line(bold line)
2 Likes
rkelchuri
(ER.Krishna)
June 13, 2019, 12:59pm
2
use split function condition as vbNewLine.
Your String.Split(Environment.NewLine.ToCharArray());
Try this will work
–in assign activity take one variable of type array of strings and then use this syntax city.Split(Environment.NewLine.ToCharArray).ToArray()
rkelchuri
(ER.Krishna)
June 13, 2019, 1:32pm
6
First of all, please see your string pattern, whether it is really line by line or not. If it is not Line by line, this Environment.NewLine will not work.
lakshman
(Ganta lakshman)
June 13, 2019, 1:34pm
7
@smita.mobifly
Try this:
Assign whole value to one String variable and say ‘Str’.
Str.Substring(Str.IndexOf("GSTIN : ")+“GSTIN :”.Length).split(Environment.Newline.TocharArray)(0)
3 Likes
system
(system)
Closed
June 16, 2019, 1:39pm
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.