CitaceWithin POSIX bracket expressions, the dot character matches a literal dot. For example, a.c matches "abc", etc., but [a.c] matches only "a", ".", or "c".
Citace od: kmarty kdy 07. 07. 2011, 11:09:36CitaceWithin POSIX bracket expressions, the dot character matches a literal dot. For example, a.c matches "abc", etc., but [a.c] matches only "a", ".", or "c".Zdroj: http://en.wikipedia.org/wiki/Regular_expressionA protoze se to tak chova i v realu, tak bych tomu i veril.
Citace od: designerrr kdy 07. 07. 2011, 12:35:31Citace od: kmarty kdy 07. 07. 2011, 11:09:36CitaceWithin POSIX bracket expressions, the dot character matches a literal dot. For example, a.c matches "abc", etc., but [a.c] matches only "a", ".", or "c".Zdroj: http://en.wikipedia.org/wiki/Regular_expressionA protoze se to tak chova i v realu, tak bych tomu i veril.Ale v ramci mnoziny moznych znaku to nema tenhle specialni vyznam, ale jako normalni tecka.
Citace od: pepazdepa kdy 07. 07. 2011, 10:54:44$ echo "c1111jfljdlfja" | sed -re 's/([0-9.]+).*/\1/'c1111
Citace od: pepazdepa kdy 07. 07. 2011, 10:54:44$ echo "1111aaa-jfljdlfja" | sed -re 's/([0-9.]+).*/\1/'1111