Dear Dejan, Thank you for your answer. I did something similar as a quick and dirty solution. Using "." instead of "/" has some side effect. If the search pattern is /^12.5$/ will match not only 12/5, but 1215, 1225, etc. This side affect is difficult to explane to the end users.
Thanks, Zoltan On Sun, 13 Sep 2009, dejan.gam...@pula.hr wrote: > Zoltan, > > I use something like this in query.php, q_execAttributeQuery() (around > line 724): > > if (substr_count($this->qStr, "/") == 3) { > $qStrArray = explode("/", $this->qStr); > $newqStr = > $qStrArray[0]."/".$qStrArray[1].".".$qStrArray[2]."/".$qStrArray[3]; > $this->qStr = $newqStr; > } > > regards, dejan > > Siki Zoltan <s...@agt.bme.hu> wrote on 13.09.2009 11:34:40: > >> Hi List, >> >> I get in trouble with search, I have slash character in the search >> pattern. When I use wildcard=2 it works, but when I try to use wildcard > 0 >> or 1 it finds no match because slases are not escaped in query string > ($qs >> in search.php). >> in pm_debug.log I get >> [qStr] => ( "[HRSZ]" =~ /^(2|2)(2|2)(4|4)(8|8)(6|6)(9|9)/(2|2)$/) >> >> The search string I looked for '224869/2'. >> I think the slashes would be escaped in the query string in search.php >> (getSearchParamsShp). I use shape files. >> >> Thanks, >> Zoltan >> >> > ------------------------------------------------------------------------------ >> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day >> trial. Simplify your report design, integration and deployment - > andfocus on >> what you do best, core application coding. Discover what's new with >> Crystal Reports now. http://p.sf.net/sfu/bobj-july >> _______________________________________________ >> pmapper-users mailing list >> pmapper-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users