Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails g:tags does not support the doller($) sign in regex for pattern ? why?

Tags:

regex

grails

Grails g:tags does not support inline pattern validation with dollar ($) sign. You can validate the field with jQuery. But is there any solution for the inline g:tag support for dollar sign with grails?

like image 478
Har Narayan Vishwakarma Avatar asked Mar 18 '16 05:03

Har Narayan Vishwakarma


1 Answers

It supports $ sign with escape character \ so you need to use it like \$

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

<g:field name="abc" type="text" pattern=".*([.,/])\$" />
like image 142
Chetan Avatar answered Oct 02 '22 23:10

Chetan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!