Re: [SLUG] regex question

2008-04-12 Thread Alex Samad
On Sun, Apr 13, 2008 at 09:16:59AM +1000, Alex Samad wrote: > On Sun, Apr 13, 2008 at 08:39:17AM +1000, Alex Samad wrote: > > Hi > > > > > > I want to look at a config file that uses ; as comments, but I want to > > look at everything that is not a commented line > > > > so I tried grep -v '^\W*

Re: [SLUG] RegEx question

2007-11-21 Thread Jacinta Richardson
Stuart Guthrie wrote: > Not being a regex expert I was hoping someone could point me at a > list, forum or just give me a pointer on how to achieve this: > > Field that must have 2 out of 3 of these: > > standard a-z/A-Z > arabic numbers 0-9 > special chars %$#@ ^ ([A-Za-z]([0-9]|[EMAIL PROTECTE

Re: [SLUG] RegEx question

2007-11-12 Thread Stuart Guthrie
Thanks everyone for some great help. I thought there might be a couple of regex gurus out there! Stuart On Nov 9, 2007 5:42 PM, Roger Barnes <[EMAIL PROTECTED]> wrote: > > Not being a regex expert I was hoping someone could point me > > at a list, forum or just give me a pointer on how to achieve

RE: [SLUG] RegEx question

2007-11-08 Thread Roger Barnes
> Not being a regex expert I was hoping someone could point me > at a list, forum or just give me a pointer on how to achieve this: > > Field that must have 2 out of 3 of these: > > standard a-z/A-Z > arabic numbers 0-9 > special chars %$#@ Is there a constraint requiring that this be done with

Re: [SLUG] RegEx question

2007-11-08 Thread Glen Turner
On Fri, 9 Nov 2007, Stuart Guthrie wrote: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@ What's wrong with brute force? bool password_characters_good_choice(char *s) { int matches; matches = (match("abcdefghijklmnopqrstuvwxyz", s) +

Re: [SLUG] RegEx question

2007-11-08 Thread Phil Scarratt
Phil Scarratt wrote: Rick Welykochy wrote: Stuart Guthrie wrote: Not being a regex expert I was hoping someone could point me at a list, forum or just give me a pointer on how to achieve this: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@

Re: [SLUG] RegEx question

2007-11-08 Thread Phil Scarratt
Phil Scarratt wrote: Rick Welykochy wrote: Stuart Guthrie wrote: Not being a regex expert I was hoping someone could point me at a list, forum or just give me a pointer on how to achieve this: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@

Re: [SLUG] RegEx question

2007-11-08 Thread Phil Scarratt
Rick Welykochy wrote: Stuart Guthrie wrote: Not being a regex expert I was hoping someone could point me at a list, forum or just give me a pointer on how to achieve this: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@ [EMAIL PROTECTED]|[A-Z

Re: [SLUG] RegEx question

2007-11-08 Thread Phil Scarratt
Rick Welykochy wrote: Stuart Guthrie wrote: Not being a regex expert I was hoping someone could point me at a list, forum or just give me a pointer on how to achieve this: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@ [EMAIL PROTECTED]|[A-Z

Re: [SLUG] RegEx question

2007-11-08 Thread Robert Thorsby
On 09/11/07 15:39:54, Stuart Guthrie wrote: > Not being a regex expert I was hoping someone > could point me at a list, forum or just give > me a pointer on how to achieve this: > > Field that must have 2 out of 3 of these: > > standard a-z/A-Z > arabic numbers 0-9 > special chars %$#@ A crude b

Re: [SLUG] RegEx question

2007-11-08 Thread Sonia Hamilton
On Fri, 9 Nov 2007 15:39:54 +1100, "Stuart Guthrie" <[EMAIL PROTECTED]> said: > Not being a regex expert I was hoping someone could point me at a > list, forum or just give me a pointer on how to achieve this: > > Field that must have 2 out of 3 of these: > > standard a-z/A-Z > arabic numbers 0-9

Re: [SLUG] RegEx question

2007-11-08 Thread Scott Ragen
[EMAIL PROTECTED] wrote on 09/11/2007 04:48:20 PM: > Stuart Guthrie wrote: > > > Not being a regex expert I was hoping someone could point me at a > > list, forum or just give me a pointer on how to achieve this: > > > > Field that must have 2 out of 3 of these: > > > > standard a-z/A-Z > > ara

Re: [SLUG] RegEx question

2007-11-08 Thread Alex Samad
On Fri, Nov 09, 2007 at 04:48:20PM +1100, Rick Welykochy wrote: > Stuart Guthrie wrote: > >> Not being a regex expert I was hoping someone could point me at a >> list, forum or just give me a pointer on how to achieve this: >> Field that must have 2 out of 3 of these: >> standard a-z/A-Z >> arabic

Re: [SLUG] RegEx question

2007-11-08 Thread Rick Welykochy
Stuart Guthrie wrote: Not being a regex expert I was hoping someone could point me at a list, forum or just give me a pointer on how to achieve this: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@ [EMAIL PROTECTED]|[A-Za-z0-9]+|[EMAIL PROTECT

Re: [SLUG] RegEx question

2007-11-08 Thread Erik de Castro Lopo
Stuart Guthrie wrote: > Not being a regex expert I was hoping someone could point me at a > list, forum or just give me a pointer on how to achieve this: > > Field that must have 2 out of 3 of these: > > standard a-z/A-Z > arabic numbers 0-9 > special chars %$#@ Thats not that great a specifica

[SLUG] RegEx question

2007-11-08 Thread Stuart Guthrie
Not being a regex expert I was hoping someone could point me at a list, forum or just give me a pointer on how to achieve this: Field that must have 2 out of 3 of these: standard a-z/A-Z arabic numbers 0-9 special chars %$#@ Best regards Stuart Guthrie Director Polonious Pty Ltd (w) http://www.

Re: [SLUG] Regex question

2004-08-08 Thread Ken Foskey
On Sun, 2004-08-08 at 22:42, [EMAIL PROTECTED] wrote: > I missed the beginning of this discussion (I've just re-subscribed this > week) > but what's the reason that the original author wants this in a single RE? Used in application they cannot change... I suggested running application 4 times, m

Re: [SLUG] Regex question

2004-08-08 Thread amos
I missed the beginning of this discussion (I've just re-subscribed this week) but what's the reason that the original author wants this in a single RE? Malcolm V wrote: Ben de Luca (bedel) wrote: probably want to write a script to write the regex :) 10 points for the first code snippit that gener

Re: [SLUG] Regex question

2004-08-07 Thread Malcolm V
Ben de Luca (bedel) wrote: probably want to write a script to write the regex :) 10 points for the first code snippit that generates it !!! On 04/08/2004, at 3:43 PM, Alexander Samad wrote: On Wed, Aug 04, 2004 at 02:52:28PM +1000, Stuart Cooper wrote: Must match 3 out of 4 rules Must much at le

Re: [SLUG] Regex question

2004-08-03 Thread bedel
probably want to write a script to write the regex :) 10 points for the first code snippit that generates it !!! On 04/08/2004, at 3:43 PM, Alexander Samad wrote: On Wed, Aug 04, 2004 at 02:52:28PM +1000, Stuart Cooper wrote: Must match 3 out of 4 rules Must much at least 3 out of 4 rules I would

Re: [SLUG] Regex question

2004-08-03 Thread Alexander Samad
On Wed, Aug 04, 2004 at 02:52:28PM +1000, Stuart Cooper wrote: > > > > >Must match 3 out of 4 rules > > Must much at least 3 out of 4 rules I would > imagine, the more oblique the password the > better. > > > > >1) Contain 1 or more Uppercase char > > > >2) Contain 1 or more Lowercase char > > >

Re: [SLUG] Regex question

2004-08-03 Thread Stuart Cooper
> > >Must match 3 out of 4 rules Must much at least 3 out of 4 rules I would imagine, the more oblique the password the better. > > >1) Contain 1 or more Uppercase char > > >2) Contain 1 or more Lowercase char > > >3) Contain 1 or more numeric > > >4) Contain 1 or more punctuation > looking fo

Re: [SLUG] Regex question

2004-08-03 Thread Jamie Wilkinson
This one time, at band camp, Alexander Samad wrote: >looking for 1 regex statement and perlre is the standard I think, the >sort of thing I was thinking of but really ugly was (where [:1:] - set >of chars that meets rule 1 above) > > ([:1:]+[:2:]+[:3:]+|[:1:]+[:2:]+[:4:]+|...) rather long and painf

Re: [SLUG] Regex question

2004-08-03 Thread Alexander Samad
On Wed, Aug 04, 2004 at 02:24:09PM +1000, Jamie Wilkinson wrote: > This one time, at band camp, Alexander Samad wrote: > >Hi > > > > > >a friend has to implement in regex something along these lines of these > >rules to match against a string (password) > > > >Must match 3 out of 4 rules > > > >1)

Re: [SLUG] Regex question

2004-08-03 Thread Jamie Wilkinson
This one time, at band camp, Alexander Samad wrote: >Hi > > >a friend has to implement in regex something along these lines of these >rules to match against a string (password) > >Must match 3 out of 4 rules > >1) Contain 1 or more Uppercase char >2) Contain 1 or more Lowercase char >3) Contain 1

[SLUG] Regex question

2004-08-03 Thread Alexander Samad
Hi a friend has to implement in regex something along these lines of these rules to match against a string (password) Must match 3 out of 4 rules 1) Contain 1 or more Uppercase char 2) Contain 1 or more Lowercase char 3) Contain 1 or more numeric 4) Contain 1 or more punctuation Thanks Alex

RE: [SLUG] Regex Question

2001-01-10 Thread Jason Rennie
> than time spent coding it. > 2. The code you grab out of a library has most likely been used at least > thousands of times and thus is thousands time less likely to contain > bugs/flaws. > 3. It will make your code more readable to the person who has to look at it > after you. But i need it for

RE: [SLUG] Regex Question

2001-01-10 Thread David Zverina
heers, Dave. -- David Zverina Alt Key Pty. Ltd. http://www.altkey.com PO Box 3121, Parramatta, 2124, Australia > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of > Jason Rennie > Sent: Wednesday, 10 January 2001 14:16 > To: [EMAIL PROTECTED] >

Re: [SLUG] Regex Question

2001-01-09 Thread Jason Rennie
> > > > I need to parse a date of the form DD/MM/ > > > ^[0-3][0-9]\/[01][0-9]\/[0-9][0-9][0-9][0-9]$ > > > > Thanks john, > > > > This will discover if the date is not of the form DD/MM/ right ? > > no the above will match if the date is of that form so just negate the > return value o

Re: [SLUG] Regex Question

2001-01-09 Thread John Ferlito
On Wed, Jan 10, 2001 at 02:29:04PM +1100, Jason Rennie wrote: > > > I need to parse a date of the form DD/MM/ > > ^[0-3][0-9]\/[01][0-9]\/[0-9][0-9][0-9][0-9]$ > > Thanks john, > > This will discover if the date is not of the form DD/MM/ right ? no the above will match if the date is of

Re: [SLUG] Regex Question

2001-01-09 Thread Jason Rennie
> > I need to parse a date of the form DD/MM/ > ^[0-3][0-9]\/[01][0-9]\/[0-9][0-9][0-9][0-9]$ Thanks john, This will discover if the date is not of the form DD/MM/ right ? Or am i reading it wrong ? Jason -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Inf

Re: [SLUG] Regex Question

2001-01-09 Thread John Ferlito
On Wed, Jan 10, 2001 at 02:16:03PM +1100, Jason Rennie wrote: > Hi all, > > Given the number of Regex guru's on this list. > > I'm using the gnu c++ string lib which apparently will accept regex's for > its string.contains() function call. > > I need to parse a date of the form DD/MM/ ^[0-

[SLUG] Regex Question

2001-01-09 Thread Jason Rennie
Hi all, Given the number of Regex guru's on this list. I'm using the gnu c++ string lib which apparently will accept regex's for its string.contains() function call. I need to parse a date of the form DD/MM/ and I need to check that is looks exactly like that. Nothing but intergers and s