Grails g: tags do not support doller ($) sign in regex for template? What for?

Grails g:tagsdoes not support checking the inline template using the dollar sign ($). You can check the field using jQuery. But is there a solution for native support for g:tagthe dollar sign with the grail?

+4
source share
1 answer

It supports $escape character \, so you need to use it as\$

Example <g:field ............. />

<g:field name="abc" type="text" pattern=".*([.,/])\$" />
+7
source

All Articles