I'm trying to figure out how to remove the spaces before and after a query. But they are not removing.
say the query is ++++++++gerry++++++ I want to remove all the pluses, I tried
<sandr ">>=\space+" "" $ret>
<sandr "\space+>>=" "" $ret>
but no work, how do I do it?
how would I remove the following, before and after the Gerry queries below?
...........Gerry.............
,,,,,,,,,,,Gerry,,,,,,,,,,,,,,
;;;;;;;;;;;Gerry;;;;;;;;;;;;;
=====Gerry======
--------Gerry----------
*******Gerry*********
######Gerry######
~~~~~~~~Gerry~~~~~~
_________Gerry_______
^^^^^^^^^^^Gerry^^^^^^^^^
>>>>>>>>Gerry>>>>>>>>>
?????????Gerry???????
The code I supplied would take care of both of those cases. If that's not what you want please define a precise rule. e.g. The code I provided satisfies the rule "Remove all non-alphabetics from the head and tail". Or at least describe why my rule isn't what you want.
works, because it doesn't remove the numbers in the query. all I wanted to remove where the unusual symbols that were not wanted in the front and the back of the query. like (`~!@#$%^&*()_-+={}][|\/";:<>,.)
[`~!@#\x24%^&*()_-+={}\][|\\/\x22;:<>,.]+
so
<sandr ">>=[`~\!@#\x24%^&*()_-+={}\][|\\/\x22;:<>,.]+" "" $q>
<sandr "[`~\!@#\x24%^&*()_-+={}\][|\\/\x22;:<>,.]+>>=" "" $ret>
I get this error:
<!-- 015 /search:873: REX: Invalid range sequence `[`~\!@#\x24%^&*()_-+={}\][|\\/\x22;:<>,.]' at offset +3 in the function f3par -->
<!-- 015 /search:873: REX: Invalid range sequence `[`~\!@#\x24%^&*()_-+={}\][|\\/\x22;:<>,.]' at offset +0 in the function f3par -->