Dummy
(Tabbu)
June 9, 2023, 4:07am
1
Hii, I have string like in below format
Front size
17
543/19
Rear size
18
6543/98
size
19
765/09
So, I wanted to extract 17,18.19 in a collection.
The number which I wanted to extract is after “size” keyword.
It looks like there is a line break but it is not.It is coming under one whole string.
Please help ASAP
Parvathy
(PS Parvathy)
June 9, 2023, 4:23am
2
Hi @Dummy
Follow the below Regex expression to achieve the ouput:
(?<=size)(\n.*)[\d]+
Note: Refer the below workflow for reference
Sequence3.xaml (7.4 KB)
Hope it helps!!
Regards,
Yoichi
(Yoichi)
June 9, 2023, 4:29am
3
Hi,
Can you try the following pattern?
(?<=size\s+)\d+
Edit : added example
arrString = System.Text.RegularExpressions.Regex.Matches(yourString,"(?<=size\s+)\d+").Cast(Of System.Text.RegularExpressions.Match).Select(Function(m) m.Value).ToArray()
Regards,
system
(system)
Closed
June 22, 2023, 8:54am
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.