Replace all '+' with space

Avatar
  • updated
Is it possible in a modification rule to replace all '+' characters with a space? I've searched for solutions here, and I've tried everything I can with WLE so far with no success. I'm trying to report on search strings which appear in the logs as a query in the form:

?q=mobile+phone+keyboard

The nearest I've got is:

\x2b~=

which gives just single words for all matches. So the above example would give "mobile".

Any ideas anyone? I'm pulling my hair out here, and I don't have much left :-)
modification rules replace
Avatar
Michael
How do you create a report on the query parameter? The program replaces the "+" characters with spaces automatically for most reports, e.g. for custom reports with the "Query parameter value" data type.
Avatar
D Wright
Options->Report->Tables->Activity Statistics->Create;

Custom Table Properties->Main Data->Query Parameter Value->Custom
Parameter = q;
Use Modification Rule (the part that doesn't work)... ticked
Keep original... ticked
Match all rules... ticked
Count one hit... not ticked.

Custom Table Properties->Group by->Query Parameter Value->Custom
Parameter = p;
Use Modification Rule (the part that doesn't work)... not ticked
Keep original... not ticked
Match all rules... not ticked
Count one hit... not ticked.
Avatar
Michael
Query parameter data should be shown correctly without the modification rules. If it doesn't work, could you please send to us to support@weblogexpert.com a sample log from your site as well as your program settings (you can save them using the File > Backup command from the main menu).