Environment versions
Network:
Windows 2003 Server
>>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.
I think the coloring in the expression portion is just syntax highlighting. It helps break out the parts separate parts move visibly. The coloring in the section below indicates portions that would be extracted / noted by the RegEx.
>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?
I'm not sure what you mean. The { } parts indicate how large of a grouping (should the matched text be longer) to include.
>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.
I don't know here either. I try to avoid RegEx expressions in general, or find ones I need on Stack Overflow. :-) I've often found that a dozen or so lines of regular source code can replace the single RegEx, thereby making it easier to maintain. :-)
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only