I have a text area field in a grails application. I got the following errors:
.PatternSyntaxException: Unmatched closure ')' next to index 36 Name: note: 1) list of data ....
How can I avoid regular expressions in a text area field?
thank.
Same as in a literal: put a backslash in front of it:
\(
EDIT: But if none of the characters from the text area are handled in a special way, try:
String escapedContents = java.util.regex.Pattern.quote(textArea.getText());
Source: https://habr.com/ru/post/1740502/More articles:Pros / cons of inline scripts? - scriptinggetting location of installed vb.net application - vb.netHow to return html text using something like URLDecode - javascriptAccessing the file in the installation directory in vb.net code - installationEffects of changing a node in a binary tree - algorithmhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1740503/ef4-01-relationship-leads-to-error-2016-condition-cannot-be-specified&usg=ALkJrhjfIXIhrhv6RK8_viwCQynbMBzvCwHow can I make a ListView touch in its full width to click on an item? - javaerror 2016: a condition cannot be specified for a column member - .netReading PowerPoint Animation Effects Using VBA - vbaDrools integration with JBossESB - jbossAll Articles