This is a discussion on Regular expression tips & tricks within the Database Support forums, part of the Web Development category; Hi pals, Here,i share regular expression tips&tricks,it is more usefult to u REGULAR EXPRESSION Character|Description|...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi pals, Here,i share regular expression tips&tricks,it is more usefult to u REGULAR EXPRESSION Character|Description|Example ^(Cap)-Match the beginning of the string-SELECT 'fofo' REGEXP '^fo'; Thanks, Prasath.K Last edited by prasath : 09-23-2007 at 10:44 PM. |
| Sponsored Links |
| |||
| ASP.NET provides a suite of validation controls, which make validating inputs on web forms extremely easy compared to the same task using legacy (or classic if you prefer) ASP. One of the more powerful validators is the RegularExpressionValidator which, as you might guess, allows you to validate inputs by providing a regular expression which must match the input. The regular expression pattern is specified by setting the ValidationExpression property of the control. An example validator Code: <asp:RegularExpressionValidator runat="server" id="ZipCodeValidator"
ControlToValidate="ZipCodeTextBox" ErrorMessage="Invalid ZIP code
format; format should be either 12345 or 12345-6789."
ValidationExpression="(\d{5}(-\d{4})?" />
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
| |||
| Hi, here after,i share another regular expression REGULAR EXPRESSION Character Description Example $(Dollar) Match the end of the string SELECT 'fo\no' REGEXP '^fo\no$'; Thanks, Prasath.K Last edited by prasath : 09-23-2007 at 10:45 PM. |
| |||
| Hi, Here,another regular expression REGULAR EXPRESSION .(Dot) Match any character (including carriage return and newline). Example SELECT 'fofo' REGEXP '^f.*$'; Last edited by prasath : 09-23-2007 at 10:48 PM. |
| |||
| Hi, Below explain regular experssion REGULAR EXPERSSION a* Match any sequence of zero or more a characters Example SELECT 'Ban' REGEXP '^Ba*n'; Last edited by prasath : 09-23-2007 at 10:46 PM. |
| |||
| Hi, Another regular experssion REGULAR EXPERSSION a+ Match any sequence of one or more a characters Example SELECT 'Ban' REGEXP '^Ba+n'; Last edited by prasath : 09-23-2007 at 10:43 PM. |
| |||
| hi techies, here another regular experssion REGULAR EXPERSSION a? Match either zero or one a character Example SELECT 'Bn' REGEXP '^Ba?n'; Last edited by prasath : 09-23-2007 at 10:41 PM. Reason: spelling mistake |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| what is regular expression? | saravanan | PHP Programming | 8 | 03-28-2008 07:12 AM |
| How to use Regular expression in Java? | S.Vinothkumar | Java Programming | 3 | 11-28-2007 09:45 PM |
| Regular expression | Sathish Kumar | C# Programming | 23 | 09-10-2007 07:00 AM |
| Can any one give regular expression for this string? | raj | PHP Programming | 1 | 07-25-2007 12:42 AM |
| Regular expression | vadivelanvaidyanathan | Perl | 0 | 07-15-2007 07:21 PM |