[PHP] Preg_match----------help

2005-01-22 Thread Chandana Bandara
hi , using preg_match , how can i match "<", "_" , ">" " - " such special characters in a sentence ??? Eg: Strings are like this, 1.Ahgrwgsgd dfjb yuhh dfh GHJGJ kjHGKJGK -- here i want to match 3.GHHTGH GHJK

[PHP] Only variables can be passed by reference - Preg_match Fatal error

2005-01-16 Thread Chandana Bandara
hi When i try to compile this code it gives following error. Fatal error: Only variables can be passed by reference in /var/www/html/hello/test.php on line 16 I have defined variable for to match some string patterns / symbols. when i execute that code for preg_match , gives this fatal e

[PHP] preg match

2005-01-07 Thread Chandana Bandara
This php script perform matching text of some certain URLs. but in this preg_match it wont match few patterns < _ . with help of this script , can some body help me to match the other all patterns .plz ? "; if ( preg_match("/$chk_msg/", "$msg", $match) ) {