Pattern "XXXXXXXX##" to break out string "00000078.7\r\n" to get
"00000078.7";
Pattern ""##XX##XX##" to break out string "LB78KL.7l\n" to get
"78.7";
etc......
Or what is the best way to do this?
This is a start in Perl:
my $data = "LB78KL.7l\n";
my $pat = "##XX##XX##";
$pat =~ s/(X+)/'(' . '.'x length($1) . ')'/eg; // how to do this in
csharp
$pat =~ tr/#/./; // how to do
this in csharp
print join '', $data =~ /$pat/s;
Thanks,
Jerry