Hello all I want regular expression which parse the word containing the curly braces means in string there is word like {TEXT} i want to serach this text within this string , So i use preg_match("/\b".$word."\b/i", $string) Code (markup): it's working when i use without curly braces but when i use curly braces it's doesn't working So please help me Thanks and regards, ---Amit Patel
preg_match("#\{$word\}#i", $str); Code (markup): Curley braces denote an "N or more times" syntax, so yes, they need to be escaped when used. For instance the following will match 2-7 zeros. #0{2,7}# Code (markup): You can use preg_quote any time you're unsure about metacharacters.