alisc
1
Hi friends
I hope you are fine
How can I Definnition and use special character on Array ?
example : %^&(&^%$
# define char table
:global Number 0123456789
:global CharCap ABCDEFGHIJKLMNOPQRSTUVWXYZ
:global CharSpe !@#$%^&*()_+|\=-/.,<>?;':"[]{}
Using a backslash (the character "") followed by a hex of the ASCII value is the way for an arbitrary character.
Your particular example string (the value of CharSpe that is):
:global CharSpe "\21\40\23\24\25\5E\26\2A\28\29\5F\2B\7C\5C\3D\2D\2F\2E\2C\3C\3E\3F\3B\27\3A\22\5B\5D\7B\7D"
though many of those characters don’t need to be escaped, and you can place "" only in front of those that do need to be escaped, i.e.:
:global CharSpe "!@#\$%^&*()_+|\\=-/.,<>\?;':\"[]{}"