How do you Use Wild-card in javascript for regular expressions. (10pt for anyone that answers)?
-
I am trying to use wild-card for my particular javascript file that contains regular expression code and functions. can anyone link my to an online tutorial or give me deep detailed information on how to use wild-card in javascript. Heres my code below: function editNodeText(regex,input,helpId,helpMess… if(!regex.test(input)){ if(helpId != null) helpId.appendChild(document.createTex… return false; } else if(helpId != null){ while(helpId.firstChild)) helpId.removeChild(helpId.firstChild)… return true; } } function isTheFieldEmpty(inputField,helpId){ returneditNodeText(/.+/,inputField.va… enter a value"); } function isAddressOk(inputField, helpId){ return editNodeText(/^\d{1,6}\s\w{3,16}\s\w{2,8… a proper Street Address (Ex. 1234 Main St.)"); } function isStateOk(inputField, helpId){ return editNodeText(/^A[LKSLZRAEP]|C[AOT]|D[EC]… inputField.value, helpId, "Enter State Code in Uppercases (Ex. NY, for New York)" ); } function isPhoneOk(inputField, helped){ return editNodeText(/^([0-9](|-)?)?(\(?[0-9]{3}… inputfield.value, helpId, "Enter a Phone Number (Ex. 412-828-3000)"); } function isEmailOk(inputField, helpId){ returneditNodeText(/^[A-Za-z0-9] (([_\.\-]?[a-zA-Z0-9]+)*)@([A-Z a-z]+)(([\.\-]?[a-zA-z0-9]+)*)\.([A-Za-z… inputField.value, helpId, "Enter an Email(Ex. [email protected])"); }
-
Answer:
Dominic A at Yahoo! Answers Visit the source
Related Q & A:
- How To Use Gift Card?Best solution by Yahoo! Answers
- What's the use of Deterministic Regular Expressions?Best solution by Stack Overflow
- How can I use a prepaid credit card?Best solution by ehow.com
- How can I use a visa gift card to buy something on ebay?Best solution by Yahoo! Answers
- How can I use my old memory card on my new camera?Best solution by forums.sandisk.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.