logo
g Text Version
Beauty & Self
Books & Music
Career
Computers
Education
Family
Food & Wine
Health & Fitness
Hobbies & Crafts
Home & Garden
Money
News & Politics
Relationships
Religion & Spirituality
Sports
Travel & Culture
TV & Movies

dailyclick
Bored? Games!
Nutrition
Postcards
Take a Quiz
Rate My Photo

new
Romance Movies
Creativity
Family Travel
Southwest USA
Irish Culture
Home Finance
Comedy Movies


dailyclick
All times in EST

Low Carb: 8:00 PM

Full Schedule
g
g ASP Site

BellaOnline's ASP Editor

g

Regular Expression Pattern Matching

Guest Author - Lisa Shea

Regular Expressions let you do pattern matching in VBScript and ASP. In essence, you can validate that any input string matches up to your required letter/number settings.

What you can do is specify exactly what characters should be found in each position. So if you wanted to only accept values of

ID1 through ID9, you could set your pattern to be

ID[1-9]

If you needed a value to start with SUBJ but have any characters after that point, you could do

SUBJ*

You can also use {#} to say you want # of something. So you can do

[1-9]{9}

if you want to see 9 digits in a row. So a pattern for a social security number would be

[0-9]{3}-[0-9]{2}-[0-9]{4}

To learn how to use these patterns in your code, be sure to read Using Regular Expressions in ASP Coding!
This site needs an editor - click to learn more!

Add Regular+Expression+Pattern+Matching to Twitter Add Regular+Expression+Pattern+Matching to Facebook Add Regular+Expression+Pattern+Matching to MySpace Add Regular+Expression+Pattern+Matching to Del.icio.us Digg Regular+Expression+Pattern+Matching Add Regular+Expression+Pattern+Matching to Yahoo My Web Add Regular+Expression+Pattern+Matching to Google Bookmarks Add Regular+Expression+Pattern+Matching to Stumbleupon Add Regular+Expression+Pattern+Matching to Reddit




RSS | Related Articles | Editor's Picks Articles | Top Ten Articles | Previous Features | Site Map


For FREE email updates, subscribe to the ASP Newsletter


Past Issues


print
Printer Friendly
bookmark
Bookmark
tell friend
Tell a Friend
forum
Forum
email
Email Editor


Content copyright © 2014 by Lisa Shea. All rights reserved.
This content was written by Lisa Shea. If you wish to use this content in any manner, you need written permission. Contact BellaOnline Administration for details.

g


g features
Best uses for RSS

RSS and its future.

Force Download Dialog box with ASP

Archives | Site Map

forum
Forum
email
Contact

Past Issues
memberscenter


vote
Poetry
Daily
Weekly
Monthly
Less than Monthly



BellaOnline on Facebook
g


| About BellaOnline | Privacy Policy | Advertising | Become an Editor |
Website copyright © 2014 Minerva WebWorks LLC. All rights reserved.


BellaOnline Editor