Cytat(NuLL @ 28.07.2006, 00:30 )

BZDURA - owszem oba dzialaja ale zalecanym sa nawiasy klamrowe. W manualu jest wyraznie napisanie aby nie odwololywac sie jak do tablicy.
A w którym miejscu, bo w tym manualu z którego ja korzystam jest akurat zupełnie odwrotnie

Cytat("Manual php")
String access and modification by character
Characters within strings may be accessed and modified by specifying the zero-based offset of the desired character after the string using square array-brackets like $str[42] so think of a string as an array of characters.
Note: They may also be accessed using braces like $str{42} for the same purpose. However, using square array-brackets is preferred.
A tak wogóle to tę regularkę skądś znam, tylko że u mnie na stronie jest poprane odwołanie do klasy znakowej:
\d
http://bedkowski.pl/a/php_regex/3/