Click here to Skip to main content
15,885,546 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
AnswerRe: array of file extentions PinPopular
Peter_in_278022-May-11 21:13
professionalPeter_in_278022-May-11 21:13 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)23-May-11 21:46
professionalAli Al Omairi(Abu AlHassan)23-May-11 21:46 
GeneralRe: array of file extentions Pin
Ali Al Omairi(Abu AlHassan)2-Nov-11 23:20
professionalAli Al Omairi(Abu AlHassan)2-Nov-11 23:20 
QuestionForming reguar expressions using a builder class? Pin
Sander Rossel8-Apr-11 2:13
professionalSander Rossel8-Apr-11 2:13 
AnswerRe: Forming reguar expressions using a builder class? Pin
User 17164928-Apr-11 2:40
professionalUser 17164928-Apr-11 2:40 
GeneralRe: Forming reguar expressions using a builder class? Pin
Sander Rossel8-Apr-11 8:54
professionalSander Rossel8-Apr-11 8:54 
AnswerRe: Forming reguar expressions using a builder class? Pin
PIEBALDconsult22-May-11 3:27
mvePIEBALDconsult22-May-11 3:27 
QuestionNegative regular expression Pin
Łukasz Nowakowski4-Apr-11 22:11
Łukasz Nowakowski4-Apr-11 22: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_27804-Apr-11 23:42
professionalPeter_in_27804-Apr-11 23:42 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 0:09
Łukasz Nowakowski5-Apr-11 0:09 
AnswerRe: Negative regular expression Pin
dasblinkenlight5-Apr-11 2:47
dasblinkenlight5-Apr-11 2:47 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 2:51
Łukasz Nowakowski5-Apr-11 2:51 
QuestionPattern Pin
byka9-Mar-11 2:20
byka9-Mar-11 2:20 
QuestionRe: Pattern Pin
Luc Pattyn9-Mar-11 2:41
sitebuilderLuc Pattyn9-Mar-11 2:41 
AnswerRe: Pattern Pin
Pete O'Hanlon9-Mar-11 2:54
mvePete O'Hanlon9-Mar-11 2:54 
GeneralRe: Pattern Pin
byka9-Mar-11 3:13
byka9-Mar-11 3:13 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 3:26
mvePete O'Hanlon9-Mar-11 3:26 
GeneralRe: Pattern Pin
byka9-Mar-11 3:30
byka9-Mar-11 3:30 
GeneralRe: Pattern Pin
Pete O'Hanlon9-Mar-11 4:02
mvePete O'Hanlon9-Mar-11 4:02 
GeneralRe: Pattern Pin
byka9-Mar-11 4:29
byka9-Mar-11 4:29 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:19
sitebuilderLuc Pattyn9-Mar-11 3:19 
GeneralRe: Pattern Pin
byka9-Mar-11 3:36
byka9-Mar-11 3:36 
AnswerRe: Pattern Pin
Luc Pattyn9-Mar-11 3:55
sitebuilderLuc Pattyn9-Mar-11 3:55 
GeneralRe: Pattern Pin
musefan4-Apr-11 2:55
musefan4-Apr-11 2:55 
GeneralRe: Pattern Pin
Luc Pattyn4-Apr-11 3:38
sitebuilderLuc Pattyn4-Apr-11 3: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.