I have some text area field in my grails application. I got the following errors:
.PatternSyntaxException: Unmatched closing ‘)’ near index 36 Name: note: 1) data listing ….
how could i escape the regular expressions in the text area field?
thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The same as in a literal: place a backslash before it:
EDIT: But if none of the characters from the text area must be treated special, try: