Re: Question about regular expressions

2011-07-21 Thread Daniel Staal
On Wed, July 20, 2011 10:33 pm, dave jones wrote: Hi, I have a config file below: $user= 'root'; // This is the username if $user is found, I want to display root. Anyone knows how to programming in C or some other language? thank you. I'm not quite sure what you are

Re: Question about regular expressions

2011-07-21 Thread Damien Fleuriot
On 7/21/11 4:33 AM, dave jones wrote: Hi, I have a config file below: $user= 'root'; // This is the username if $user is found, I want to display root. Anyone knows how to programming in C or some other language? thank you. Regards, Dave.

Question about regular expressions

2011-07-20 Thread dave jones
Hi, I have a config file below: $user= 'root'; // This is the username if $user is found, I want to display root. Anyone knows how to programming in C or some other language? thank you. Regards, Dave. ___

Re: Regular expressions

2007-08-20 Thread Reid Linnemann
Written by Christer Hermansson on 08/18/07 18:08 Derek Ragona wrote: At 12:04 PM 8/18/2007, Christer Hermansson wrote: I also found some basic example at http://www.grymoire.com/Unix/Sh.html#uh-88 : 88888 #!/bin/sh echo Type in a number read

Re: Regular expressions

2007-08-20 Thread Reid Linnemann
Written by Reid Linnemann on 08/20/07 11:58 Written by Christer Hermansson on 08/18/07 18:08 Derek Ragona wrote: At 12:04 PM 8/18/2007, Christer Hermansson wrote: I also found some basic example at http://www.grymoire.com/Unix/Sh.html#uh-88 :

Regular expressions

2007-08-18 Thread Christer Hermansson
Hi. I'm trying to use regular expressions inside a shell script (/bin/sh) on my freebsd box and can't get it to work so I searched the web and found http://regexlib.com/RETester.aspx On this webpage I could test my pattern ^[A-Za-z0-9_-]+$ and everything was fine, did exactly what I wanted

Re: Regular expressions

2007-08-18 Thread Derek Ragona
At 12:04 PM 8/18/2007, Christer Hermansson wrote: Hi. I'm trying to use regular expressions inside a shell script (/bin/sh) on my freebsd box and can't get it to work so I searched the web and found http://regexlib.com/RETester.aspx On this webpage I could test my pattern ^[A-Za-z0-9_

Re: Regular expressions

2007-08-18 Thread Christer Hermansson
Derek Ragona wrote: At 12:04 PM 8/18/2007, Christer Hermansson wrote: I also found some basic example at http://www.grymoire.com/Unix/Sh.html#uh-88 : 88888 #!/bin/sh echo Type in a number read ans number=`expr $ans : ([0-9]*)` if [ $number !=