Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8936733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:16:42+00:00 2026-06-15T10:16:42+00:00

I was developed one application using grails 1.3.7 version. where i was using regex

  • 0

I was developed one application using grails 1.3.7 version. where i was using regex expression for password validation.

like..

 public static final String MYFAX_PASSWORD_REGEX_PATTERN = "[a-zA-Z0-9!@#\$%^&*()<>{};:.\\]\\[]{4,20}"

and it’s working fine but when i am upgrading this project into grails 2.x then its’ display me below compilation error.

Can anybody help me?

illegal escape character
public static final java.lang.String MYFAX_PASSWORD_REGEX_PATTERN = "[a-zA-Z0-9!@#$%^&*()<>{};:.\]\[]{4,20}";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T10:16:43+00:00Added an answer on June 15, 2026 at 10:16 am

    You can try the Groovy ~"pattern" expression:

    def MYFAX_PASSWORD_REGEX_PATTERN = ~/[a-zA-Z0-9!@#$%^&*()<>{};:.\]\[]{4,20}/
    

    For more information refer to the Groovy Regular Expressions manual.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using symfony for one of my projects. The application has already developed and
We have developed a Web Application using grails, groovy and oracle as database with
Here i want to developed one application using google account login facility and i
Iam using visual studio 2010. i have developed one web application. my iis application
I have developed a web application using Spring 3.1 In one of the module
I'd like to create a file 'setup.exe' that contains one application that I developed
I have developed android phonegap application using javascript. I am having one parent div
I was developed one small application using Asp.NET with C# (Web Application). My Environment
I have developed one application which can using hashset concept. I have to override
I have developed one application which used to send/receive mails using Exchange Server 2003

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.