nutch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fuad Efendi" <f...@efendi.ca>
Subject RE: URL with Space
Date Thu, 03 Sep 2009 18:45:00 GMT
 
> I am suing the urlnormalizer plugin (urlnormalizer-(pass|regex|basic)) and
I
> put the below rule in the conf/regex-normalize.xml file
> 
> <regex>
>   <pattern>\s</pattern>
>   <substitution>%20</substitution>
> </regex>
> 


Should be escaped backslash:
  <pattern>\\s</pattern>


You can also use + (plus) instead of %20.





Mime
View raw message