special characters handling

22 views
Skip to first unread message

Sandeep Manchikanti

unread,
Aug 9, 2021, 12:21:25 AMAug 9
to klish-dev
I want to all the special characters except space and single quote, how can i define a pattern for it.

i tried this - pattern="[]a-zA-Z0-9\!\[`\$\%\/\^\_\+\=\#\@\?\;\,\|\*\{\}\(\)\~\.\>\<\&\"\-]+"
gave input as ~!@`$%#^&*()
showed in web ~\!@`$%\#^\&*\(\)
now escape characters also got accepted - but \ char getting added

i want to store string as it is as how user entered

Let me know if there is a solution or any work around to handle it.

Thankyou
Reply all
Reply to author
Forward
0 new messages