Hi, I am parsing a xml file and getting all datas. some datas are regular patterns, that has to be used for validation, Regular pattern eg:^\d{5}$ during parsing "\" is removed and only ^d{5}$ is used for validation, wat is the problem, can anybody help out............... I am using this function xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, 0); does this function causes the problem.......
Do PHP XML parsers have regex interpreting? Never knew that... Are you sure? Because that might be the problem.
i tried escaping, then it was working..... anyway, i cannot do that, bcos pattern is users input, so can u tell me some other ways of overcoming this problem?