Click here to Skip to main content
12,244,103 members (51,943 online)

Regular Expressions

 
AnswerRe: array of file extentions Pin
Peter_in_278022-May-11 22:13
memberPeter_in_278022-May-11 22:13 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)23-May-11 22:46
memberAli Al Omairi(Abu AlHassan)23-May-11 22:46 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)3-Nov-11 0:20
memberAli Al Omairi(Abu AlHassan)3-Nov-11 0:20 
QuestionForming reguar expressions using a builder class? Pin
Naerling8-Apr-11 3:13
memberNaerling8-Apr-11 3:13 
AnswerRe: Forming reguar expressions using a builder class? Pin
Richard A. Abbott8-Apr-11 3:40
memberRichard A. Abbott8-Apr-11 3:40 
GeneralRe: Forming reguar expressions using a builder class? Pin
Naerling8-Apr-11 9:54
memberNaerling8-Apr-11 9:54 
AnswerRe: Forming reguar expressions using a builder class? Pin
PIEBALDconsult22-May-11 4:27
memberPIEBALDconsult22-May-11 4:27 
QuestionNegative regular expression Pin
Łukasz Nowakowski4-Apr-11 23:11
memberŁukasz Nowakowski4-Apr-11 23:11 
I read some articles about regular expressions, that much all strings except matched, but I can't get it working.
In our system we have numeric user names. They are in form "99/999/999", where "9" is of course any number. We want to control access to some functionalities by using regular expressions. I mean we have a table with two columns, one contains regular expression, that matches some numbers, and second column contains a code, that informs, which functionality is available. So if we want users, that have numbers starting with "01" to access functionality "Functionality1", we have entry:
01/[0-9]{3}/[0-9]{3}, Functionality1.
But there's a functionality, that is inaccessible by a group of users, that have a number, that starts with 23/123/. And I can't figure out how to do it (in a simple form). The only thing I can make working is to combine ranges. So I have something like:
([0-1][0-9]/[0-9]{3}/[0-9]{3})|(2[0-2]/[0-9]{3}/[0-9]{3})...
And this way I can combine a number of ranges to match only those, I want to match. But this makes it quite difficult to check for errors and modify. How can I make a regex, that excludes all numbers, that start with 23/123 without specifying all ranges, that are allowed?
Don't forget to rate answer, that helped you. It will allow other people find their answers faster.

AnswerRe: Negative regular expression Pin
Peter_in_27805-Apr-11 0:42
memberPeter_in_27805-Apr-11 0:42 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 1:09
memberŁukasz Nowakowski5-Apr-11 1:09 
AnswerRe: Negative regular expression Pin
dasblinkenlight5-Apr-11 3:47
memberdasblinkenlight5-Apr-11 3:47 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 3:51
memberŁukasz Nowakowski5-Apr-11 3:51 
QuestionPattern Pin
byka9-Mar-11 3:20
memberbyka9-Mar-11 3:20 
QuestionRe: Pattern Pin
Luc Pattyn9-Mar-11 3:41
mvpLuc Pattyn9-Mar-11 3:41 
AnswerRe: Pattern Pin
Pete O'Hanlon9-Mar-11 3:54
mvpPete O'Hanlon9-Mar-11 3:54 
GeneralRe: Pattern Pin
byka9-Mar-11 4:13
memberbyka9-Mar-11 4:13 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 4:26
mvpPete O'Hanlon9-Mar-11 4:26 
GeneralRe: Pattern Pin
byka9-Mar-11 4:30
memberbyka9-Mar-11 4:30 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 5:02
mvpPete O'Hanlon9-Mar-11 5:02 
GeneralRe: Pattern Pin
byka9-Mar-11 5:29
memberbyka9-Mar-11 5:29 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 4:19
mvpLuc Pattyn9-Mar-11 4:19 
GeneralRe: Pattern Pin
byka9-Mar-11 4:36
memberbyka9-Mar-11 4:36 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 4:55
mvpLuc Pattyn9-Mar-11 4:55 
GeneralRe: Pattern Pin
musefan4-Apr-11 3:55
membermusefan4-Apr-11 3:55 
GeneralRe: Pattern Pin
Luc Pattyn4-Apr-11 4:38
mvpLuc Pattyn4-Apr-11 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.160426.1 | Last Updated 23 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid