If you are a practitioner of regular expressions, you may be knowing, how easy it makes your life while dealing with pattern of strings. Regular Expressions is one topic, I feel, everyone in the software industry –who is even remotely related to programming- should gain mastery over. I can’t tell you enough, how many times regular expressions have came to my rescue.
Smashing Magazine, yesterday published an interesting article on advanced usage for regular expressions. Though the syntax they have used is PHP-Perl compatible but (after some minor changes in syntax) you can use it for VB Scripting needs as well. The underlying concepts behind reg-ex pretty much remains the same for all programming languages.
They have divided the topic into eight sub headings
- Greediness/Laziness
- Back Referencing: is a way to refer to previously matched patterns inside a regular expression. (One of my favorites)
- Named Groups
- Word Boundaries
- Atomic Groups
- Recursion
- Call backs
- Commenting
Check out the article here.
Also, check our earlier article on basics of regular expressions. For related questions, visit reg-ex forums.
@priya
u can use datatable parameter… Try this
How to validate a single text box with the following input conditions?
Only Alphabets
Only Numerics
Alphanumerics
Special characters
Blank Space