[plug] Grep not following my regex
Tim
weirdit at gmail.com
Thu Sep 17 10:10:33 WST 2009
Yet we've still not solved why egrep -o '[0-9.]*' doesn't work but
egrep -o '[0-9.]+' does!
The . shouldn't be an issue as it's in brackets. And I used egrep to
make sure * and + should work.
(Also, I wasn't bothered if it matched ...3..45.6..3 for example).
On my laptop. both work.
$ grep -V
GNU grep 2.5.3
$ egrep -o '[0-9.]*'
random 4343.34343
4343.34343
$ egrep -o '[0-9.]+'
random 4343.34343
4343.34343
On the Fedora machine, the first doesn't.
$ grep -V
grep (GNU grep) 2.5.1
$ egrep -o '[0-9.]*'
random 4343.34343
$ egrep -o '[0-9.]+'
random 4343.34343
4343.34343
Odd. Is it a bug in that grep version? (2.5.1)
Thanks
Tim
--
Timothy White - Somewhere in Australia
More information about the plug
mailing list