[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 ABCD AFGHFDc GHJGKJ -- here i want to match ABCD 2.AFRYRGH vhGHJGB ASD_ASD_DER GHJGJ kjHGKJGK -- here i want to

[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. bFatal error/b: Only variables can be passed by reference in b/var/www/html/hello/test.php/b on line b16/bbr / I have defined variable for to match some string patterns / symbols. when i execute that code for preg_match ,

[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 ? ?php $user=root; $pass=; $db=aa; $dblink =