B
bob lambert
Hi,
Here is another problem I am having, after discovering
regular expressions are available in vb.net std 2002.
I have a line read from file that produces the following
string:
inputln = "1.0 kt 1.6878099 ft/sec"
I tried this (below) and it does not work, and I cannot
figure out why (excuse the clunkiness please)
trying to get
units_typ_io_count(1, 1, count_speed)=1.0
code snippet
Dim units_typ_io_count(4, 2, 0) As Double
Dim riou As New Regex("?<numrtr>^\d+\.\d+([eE][+ -]\d+)?
[^ ].*?<dentr>\d+\.\d+([eE][+ -]\d+)?[ ]+?<outunits>
[^ ].+$", RegexOptions.Compiled)
..
..
..
ReDim Preserve units_typ_io_count(4, 2, 1)
units_typ_io_count(1, 1, 1) = CDbl(riou.Match
(inputln).Result("${numrtr}"))
Thanks for the help
Bob Lambert
Here is another problem I am having, after discovering
regular expressions are available in vb.net std 2002.
I have a line read from file that produces the following
string:
inputln = "1.0 kt 1.6878099 ft/sec"
I tried this (below) and it does not work, and I cannot
figure out why (excuse the clunkiness please)
trying to get
units_typ_io_count(1, 1, count_speed)=1.0
code snippet
Dim units_typ_io_count(4, 2, 0) As Double
Dim riou As New Regex("?<numrtr>^\d+\.\d+([eE][+ -]\d+)?
[^ ].*?<dentr>\d+\.\d+([eE][+ -]\d+)?[ ]+?<outunits>
[^ ].+$", RegexOptions.Compiled)
..
..
..
ReDim Preserve units_typ_io_count(4, 2, 1)
units_typ_io_count(1, 1, 1) = CDbl(riou.Match
(inputln).Result("${numrtr}"))
Thanks for the help
Bob Lambert