Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding a RegEx expression
Message
From
11/03/2014 14:18:41
 
 
To
11/03/2014 14:14:34
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01596120
Message ID:
01596127
Views:
39
>I don't think you have to do anything, but it just triggers on when you type the normal input. The highlighted portions are shown in alternating colors.

So, yellow means it validates OK I guess.

BTW, what would be your interpretation on:

([A-Za-z0-9-]{1,20})-([A-Za-z0-9]{1,12})
([A-Za-z0-9-]{1,20})-([A-Za-z0-9]{1,4})

If you would code it, for example, what would be the logic in place?

When I first looked at the first one, I thought this meant alphanumeric characters + a dash character in all characters from 1 to 20 MINUS alphanumeric only in the first 12 characters. Which means, the dash would have been accepted only from position 13th and up.

But, support gave me information that this means the dash is supported from position 2 and up.

I really do not know what to believe now.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform