Hello, I've come across a problem, I'm trying to pass in a regular expression to a taglib as a string, and I need to include some groups in the regex, which requires the [ and ] characters.
However when I try to insert them in my gsp file, they are seen as starting a list or map and throw an error.
I tried using ' instead of " and even slashy strings, but none worked.
Heres an example of what I'm talking about:
The [ starts a list and I can't seem to escape it which causes an error in the IDE and disallows building/running, I put a \ infront of it and nothing.Code:<g:tag pattern="/[A-z]{2}/" />
Any suggestions?
The IDE i'm using is IntelliJ IDEA 9 Ultimate.


Reply With Quote