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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:51:11+00:00 2026-06-14T04:51:11+00:00

I have a code here and now I want to add regular expressions to

  • 0

I have a code here and now I want to add regular expressions to it.
On the “Bedrijfsnaam” it needs to be accepted to use alphabetic characters, numbers, spaces and a few symbols like: . – _ and @.
On the “Contactpersoon” it only needs to be accepted to use alphabetic characters, spaces and dots.
For the “Email” it needs to be accepted to use alphabetic characters and a ., followed by a @, then alphabetic characters and a -, a . and after that a maximum of 3 alphabetic characters //This is because i also want this email adresses to be able: r.kameel@noordkabels.nl or r.kameel@noord-kabels.nl

on “Telefoonnummer” it only needs to be accepted to use 10 digits.

This is the javascript code I allready have:

    <script language="JavaScript" type="text/javascript"> 
function validateForm()
{
var x=document.forms["myForm"]["Bedrijfsnaam"].value;
if (x==null || x=="")
  {
  alert("De bedrijfsnaam is niet ingevuld, u wordt verzocht dit veld in te vullen.");
  return false;
  }

  var x=document.forms["myForm"]["Contactpersoon"].value;
if (x==null || x=="")
  {
  alert("De naam van de contactpersoon is niet ingevuld, u wordt verzocht dit veld in te vullen.");
  return false;
  }


  var x=document.forms["myForm"]["Email"].value;
if (x==null || x=="")
  {
  alert("Het E-mailadres van de contactpersoon is niet ingevuld, u wordt verzocht dit veld in te vullen.");
  return false;
  }

    var x=document.forms["myForm"]["Telefoonnummer"].value;
if (x==null || x=="")
  {
  alert("Het telefoonnummer van de contactpersoon is niet ingevuld, u wordt verzocht dit veld in te vullen.");
  return false;
  }


      var x=document.forms["myForm"]["option1"].value;
if (x==null || x=="")
  {
  alert("Zoekwoordcombinatie 1 van de gewenste zoekwoordcombinaties waarop uw bedrijf online vindbaar wil zijn is niet ingevuld, u wordt verzocht dit veld in te vullen.");
  return false;
  }


}

</script>
  • 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-14T04:51:12+00:00Added an answer on June 14, 2026 at 4:51 am

    You will find a useful library for regular expressions at the following website:
    http://regexlib.com/

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

Sidebar

Related Questions

I have this div in my code: <div id=advice class=validation-advice style=>some text here</div> Now,
Hey, I have this code here: ArrayList arrayList = new ArrayList(); arrayList.add(one); arrayList.add(two); arrayList.add(three);
I have this code here: var fields = row.split(/regex goes here/); I want to
I have written a code that can save data into xml. NOW I want
I have a auto submit or Click (button) code, i want to add time
Hey I have an array with numbers in it. Now I want to divide
I have some code here that uses bitsets to store many 1 bit values
I have this code here printf '$request1 = select * from whatever where this
I have this code here, which is intended to allow any type of arguments:
I have this code here, {foreach from=$cart.cartItems item=item name=cart} <div id=cart2Produkt> <p>{if $item.Product.ID} <a

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.