This is the value that I have to parse.
8.2.4.151.65; HBAAPI(I) v1.3; 3-29-02
I need to remove everything after and including the first instance of ;
So I need my ending result to be 8.2.4.151.65
This is the value that I have to parse.
8.2.4.151.65; HBAAPI(I) v1.3; 3-29-02
I need to remove everything after and including the first instance of ;
So I need my ending result to be 8.2.4.151.65
Split on the
;
and take the first string.Using a regex with a lazy match:
The ? makes the match 'lazy', so it stop at the first ;