Hello all, By executing the following statement at the command prompt (linux os)
$ echo " 01" | grep '^ *...$' the string " 01" (excluding the double quotes) is printed to the standard output. Can somebody explain the behaviour? Of course, theoretically the regular expression matches the string, but according to the documentation it shouldn't. The documentation says that the * operator is greedy so the regular expression should match all the space at the beginnign of the string and then (because of the 3 dots) it should try to match 3 more characters. regards cristi
