Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (2)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Struts (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, 7331👍, 0💬
Popular Posts:
How can we format data inside DataGrid? Use the DataFormatString property.
What is the purpose of the wait(), notify(), and notifyAll() methods? The wait(),notify(), and notif...
Who Developed HTML? HTML was originally developed by Tim Berners-Lee while at CERN, and popularized ...
When should the method invokeLater() be used? This method is used to ensure that Swing components ar...
How To Compile a JUnit Test Class? Compiling a JUnit test class is like compiling any other Java cla...