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 8445019
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:33:01+00:00 2026-06-10T09:33:01+00:00

I am having problem with some regex expression, I need a regex to check

  • 0

I am having problem with some regex expression, I need a regex to check whether the field is blank or not, if blank it should show a message “This field is required”.

I tried this regex but it doesn’t work.

allRules =  {"required":{
                        "regex":"none",
                        "alertText":"* This field is required",
                        "alertTextCheckboxMultiple":"* Please select an option",
                        "alertTextCheckboxe":"* This checkbox is required"},

It somehow only works only on textfield not textarea. Anyone can solve this? Thanks

UPDATE: Also, it must allow special chracters as such , and .

  • 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-10T09:33:03+00:00Added an answer on June 10, 2026 at 9:33 am

    The regex /^$/ matches an empty string. The opposite, to check if a string is non-empty, is /./

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

Sidebar

Related Questions

I'm having some issues with a regular expression I'm creating. I need a regex
I'm having some problem with this statement declare @result int select @result = (select
I am having some problem with jsonp and jquery. This is my code -
I've having this problem with some JavaScript code. I've simplified it in the error
I am having some trouble with this regex: <img(.+)src=_image/([0-9]*)/(.+)/> Global and case insensitive flags
I am having some trouble with this regular expression, Can somebody maybe assist me
I'm trying to figure out a Java regex problem that I'm having. This is
Having some problems figuring out the regex to match this: function Array() { [native
I am having a bit of a problem with some regex I did for
I need a regex that extract text inside a delimiter but I'm having problem

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.