Click here to Skip to main content
14,978,303 members
Home / Discussions / Regular Expressions
   

Regular Expressions

 
QuestionRegular Expression Pin
Morgs Morgan11-Jul-11 22:07
MemberMorgs Morgan11-Jul-11 22:07 
AnswerRe: Regular Expression Pin
Firo Atrum Ventus11-Jul-11 22:31
MemberFiro Atrum Ventus11-Jul-11 22:31 
GeneralRe: Regular Expression Pin
Morgs Morgan11-Jul-11 23:09
MemberMorgs Morgan11-Jul-11 23:09 
GeneralRe: Regular Expression Pin
PIEBALDconsult17-Jul-11 5:55
professionalPIEBALDconsult17-Jul-11 5:55 
AnswerRe: Regular Expression [modified] Pin
PIEBALDconsult17-Jul-11 7:02
professionalPIEBALDconsult17-Jul-11 7:02 
AnswerRe: Regular Expression Pin
JimmyRopes13-Aug-11 11:57
professionalJimmyRopes13-Aug-11 11:57 
AnswerRe: Regular Expression [modified] Pin
Shahan Ayyub23-Aug-11 11:00
MemberShahan Ayyub23-Aug-11 11:00 
QuestionValue between brackets with a sperator character [modified] Pin
Groulien26-May-11 2:27
MemberGroulien26-May-11 2:27 
I'm looking for a regex which can match the a value between brackets and deal with a seperator character within.
This is the format I'm after:
[?#?]
where ? can be one or more characters and # is '+', '-' or '='

It should match the following.
[1+1]
[A=T]
[AB=#1#2#3]

So far I've got this:
\[.*[\+-=]?\]
But it doesn't work well, it includes text between the 'tags'.
[A=B]ShouldNotInclude[1=3] (but it does )
I'm obviously doing something wrong,the whole regex probably.
Anyone got an idea?

Found the problem, not the solution.
Problem is that it jumps to the last ']' character it can detect.

modified on Thursday, May 26, 2011 9:15 AM

AnswerRe: Value between brackets with a sperator character Pin
Groulien26-May-11 3:28
MemberGroulien26-May-11 3:28 
AnswerRe: Value between brackets with a sperator character Pin
Peter_in_278026-May-11 14:13
professionalPeter_in_278026-May-11 14:13 
Questionarray of file extentions Pin
Ali Al Omairi(Abu AlHassan)22-May-11 20:43
professionalAli Al Omairi(Abu AlHassan)22-May-11 20:43 
AnswerRe: array of file extentions Pin
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
professionalPIEBALDconsult22-May-11 3:27 
QuestionNegative regular expression Pin
Łukasz Nowakowski4-Apr-11 22:11
MemberŁukasz Nowakowski4-Apr-11 22:11 
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
MemberŁukasz Nowakowski5-Apr-11 0:09 
AnswerRe: Negative regular expression Pin
dasblinkenlight5-Apr-11 2:47
Memberdasblinkenlight5-Apr-11 2:47 
GeneralRe: Negative regular expression Pin
Łukasz Nowakowski5-Apr-11 2:51
MemberŁukasz Nowakowski5-Apr-11 2:51 
QuestionPattern Pin
byka9-Mar-11 2:20
Memberbyka9-Mar-11 2:20 
QuestionRe: Pattern Pin
Luc Pattyn9-Mar-11 2:41
sitebuilderLuc Pattyn9-Mar-11 2:41 

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.