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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:22:41+00:00 2026-06-06T00:22:41+00:00

My knowledge of regular expression is very weak. I am needing help building the

  • 0

My knowledge of regular expression is very weak. I am needing help building the regular expression and try to display two notifications if user leaves title text box field empty. In my original project there is more than one text box for currency, description textarea, chekcbox, etc. But I don’t want to make this example extensive so I am using only one text box.

Both notification appear if text box field is left empty but the problem is once the correct input is placed it still shows notification number two: “* Descriptive title for your post”. Why is that?

JS Expressions

"required": { // Add your regex rules here, you can take telephone as an example
                    "regex": "none",
                    "alertText": "* This is required",
                    "alertTextCheckboxMultiple": "* Please select an option",
                    "alertTextCheckboxe": "* This checkbox is required",
                    "alertTextDateRange": "* Both date range fields are required"
                },

"title": {
                    "regex": "none",
                    "alertText": "* Descriptive title for your post"
                },

HTML

input type="text"  id="ValidField" class="validate[required,custom[title]] text-input" size="60" autocomplete="off" value=""/>

Result after correct input has been entered:
enter image description here

  • 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-06T00:22:42+00:00Added an answer on June 6, 2026 at 12:22 am

    Looking at your markup, it appears that the regex is currently set to match the word none when it validates the title.

    The Customizations section at the Validation plugin webpage explains that this value is a regex pattern per your forms Title requirements.

    Although that regex example allows letters only, a different regex pattern can be used to include numbers, symbols, etc. per your forms requirements.

    This online tool may be useful in testing to create the right regex.

    For example, a regex for the Title to make sure it has something would be:
    /^(\S+)/
    This regex would allow the Title to have letters, space, and numbers: /^[a-zA-Z0-9\ \']+$/

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

Sidebar

Related Questions

I will say that i am very weak in my knowledge of regular expressions...
I am looking for help in creating a Regular Expression that validates a URL
I don't have much knowledge about regular expression. I found this code to detect
My regular expression knowledge is lacking and I'm trying to solve the following issue.
I'm trying to create a regular expression that will pick the longest of two
Excuse my ignorance. My knowledge of regular expressions is extremely limited. I have the
I have not written regular expressions before and my knowledge is woefully inadequate. I
My SQL knowledge is very limited, specially about SQLite, although I believe this is
I have the following Regular Expression which matches an email address format: ^[\w\.\-]+@([\w\-]+\.)+[a-zA-Z]+$ This
i'm searching for keywords in a string via a regular expression. It works fine

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.