Re: [Perl-unix-users] Need help for a regular expression

2010-02-26 Thread Brian Raven
walter.l...@schwindt.eu <> wrote: > Hello, > > I have to analize a text document and want to get all lines like: > >> < >> # > (where F is a floating point number between the two characters >< ) > > but only, if all four floating numbers are identical! > > > Example f

Re: [Perl-unix-users] Need help for a regular expression

2010-02-26 Thread Michael Baker
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) wrote: > Hello, > > I have to analize a text documen