Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Example of using Regular Expressions for syntax checking in JavaScript
Example of using Regular Expressions for syntax checking in JavaScript
✍: Guest
...
var re = new RegExp("^(&[A-Za-z_0-9]{1,}=[A-Za-z_0-9]{1,})*$");
var text = myWidget.value;
var OK = re.test(text);
if( ! OK ) {
alert("The extra parameters need some work.\r\n Should be something like: \"&a=1&c=4\"");
}
2008-05-13, 6917👍, 0💬
Popular Posts:
.NET INTERVIEW QUESTIONS - Is versioning applicable to private assemblies? Versioning concept is onl...
How do we host a WCF service in IIS? Note: - The best to know how to host a WCF in IIS is by doing a...
What is the sequence of UML diagrams in project? First let me say some fact about this question, you...
Can one execute dynamic SQL from Forms? Yes, use the FORMS_DDL built-in or call the DBMS_SQL databas...
What is CodeDom? “CodeDom” is an object model which represents actually a source code. It is designe...