Hi.
I want to capture data with @ & and ~ symbols in it. I made some attempts but no results.
//echo -a $regsubex(@Gandalf %Legolas @Brave,/\[@&~]/g,\1) = Return : @Gandalf @Brave : OK very good.
For example, there is no problem with this first command
-----
However, when there is a name with no symbols, the regex catches it as well. :S
Sample: //echo -a $regsubex(@Gandalf Legolas BraveHeart @Brave,/\[@&~]/g,\1) : Return: @Gandalf Legolas BraveHeart @Brave
Whereas it should only give names containing @, & and ~.
In short, how can I catch names containing @, & and ~ symbols with regex?