[PHP] Re: preg_replace with /e modifier

2003-02-25 Thread aw2001
Thanks John! Sorry to pester you any more, but how can I match all Ascii characters? I can't seem to find it on 'http://www.php.net/manual/en/pcre.pattern.syntax.php' (The period is matching Ascii characters and giving me this) Unexpected character in input: ' ' (ASCII=23) state=2 Also how many a

[PHP] preg_replace with /e modifier

2003-02-24 Thread aw2001
I cant find a way to properly escape the special characters for php code evaluation (iam sure its something simple) Can some one point this out? [errors generated] Parse error: parse error, unexpected ']' Fatal error: Failed evaluating code: $color[!] [function containing error] function HTMLfrom

[PHP] preg_replace

2003-02-18 Thread aw2001
This should work (as far as I can tell) But yields the following error. Parse error: parse error, unexpected T_CHARACTER, expecting T_STRING or T_VARIABLE or T_NUM_STRING Any help is appreciated! function HTMLfromNickName ( $player ) { //example input "^2pla^3yer" $color=array( "1"=>"#FF00