Well, it depends on how specific you need the regex to be. Could any of the
F values below be text? Are they always float values?

If I was doing this in Perl I would do it like this:

$data_line =~ />(\d\.\d)<.*>(\d\.\d)<.*>(\d\.\d)<.*>(\d\.\d)</;

and then use code to compare $1 $2 $3 and $4 and save $data_line if they
match.

Hope that helps,
Mike

On Fri, Feb 26, 2010 at 10:24 AM, <walter.l...@schwindt.eu> wrote:

> Hello,
>
> I have to analize a text document and want to get all lines like:
>
> >F<a string>F<another string>F<another string>F<                      #
> (where F is a floating point number between the two characters >< )
>
> but only, if all four floating numbers are identical!
>
>
> Example for a text:
>
> text>text<text
> >5.3<abc>5.3<d>5.3<ef>5.3<
> >4.2<abc>3.0<d>4.2<ef>4.2<
>
> Here, only the second line is needed.
>
>
>
> Some ideas?
>
> Thanks,
> Walter
>
>
> _______________________________________________
> Perl-Unix-Users mailing list
> Perl-Unix-Users@listserv.ActiveState.com
> To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>
_______________________________________________
Perl-Unix-Users mailing list
Perl-Unix-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to