Re: Help with regex conversions

2013-09-19 Thread Shlomi Fish
Hi Rajesh, On Thu, 19 Sep 2013 23:39:48 +0530 rajesh kumar wrote: > Hi, > > I am reading a set of regex, separated by comma, from database, which is in > string format and using eval to convert them in the array. > For e.g., > String from database is 'qr/^abc .* $/,qr/xxx/' > > $string = 'qr/^

Help with regex conversions

2013-09-19 Thread rajesh kumar
Hi, I am reading a set of regex, separated by comma, from database, which is in string format and using eval to convert them in the array. For e.g., String from database is 'qr/^abc .* $/,qr/xxx/' $string = 'qr/^abc .*$/,qr/xxx/'; # this $string comes from DB $string = '[' . $string . ']'; my @cl

Re: Help with regex conversions

2013-09-19 Thread Dr.Ruud
On 19/09/2013 20:09, rajesh kumar wrote: Hi, I am reading a set of regex, separated by comma, from database, which is in string format and using eval to convert them in the array. For e.g., String from database is'qr/^abc .* $/,qr/xxx/' $string = 'qr/^abc .*$/,qr/xxx/'; # this $string comes fro

Re: Help with Regex (UserName, Email)

2007-07-26 Thread Prabu Ayyappan
. Thnx Prabu Jeff Pang <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Hello! > > Help with Regex, Thanks in avance! > > > 1. Validation of Name > > Enable ALL keys on keyboard EXCEPT 0, 1, 2., > 9 > Change to uppercase

Re: Help with Regex (UserName, Email)

2007-07-26 Thread Jeff Pang
--- [EMAIL PROTECTED] wrote: > Hello! > > Help with Regex, Thanks in avance! > > > 1. Validation of Name > > Enable ALL keys on keyboard EXCEPT 0, 1, 2., > 9 > Change to uppercase of 1st alphabet of every word > and lowercase for > the rest of the

Help with Regex (UserName, Email)

2007-07-26 Thread rolinson
Hello! Help with Regex, Thanks in avance! 1. Validation of Name Enable ALL keys on keyboard EXCEPT 0, 1, 2., 9 Change to uppercase of 1st alphabet of every word and lowercase for the rest of the word. Example: aDa AdA 12DDD 12ddd dd12dd à Ada Ada 12Ddd 12Ddd Dd12dd a) If Name (0-2

Re: please advise help with regex

2006-09-28 Thread Gregory Machin
i have been playing... will this work and wich is more efficient ? /^([0-3][0-9]\- #day-| (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+#month | \-(20)[0-9][0-9]\s+ #year till 2099 | [0-9][0-9]\: #hour

Re: please advise help with regex

2006-09-28 Thread Rob Dixon
Gregory Machin wrote: > Hi > I need to parse the logs for my named server. i'm having difficulty getting > my mind around the regex to break the data up .. i want the break it up and > store it in a data base then maniptulate the data from there ... > |date | time |catagory|severit

please advise help with regex

2006-09-28 Thread Gregory Machin
Hi I need to parse the logs for my named server. i'm having difficulty getting my mind around the regex to break the data up .. i want the break it up and store it in a data base then maniptulate the data from there ... |date | time |catagory|severity|client |ip |port

Re: Need help with regex

2004-11-04 Thread John W. Krahn
Kevin Old wrote: Hello everyone, Hello, I have a line like the following: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC000) and a "code" that starts with UPS, or if the code doesn

Re: Need help with regex

2004-11-04 Thread Kevin Old
On Thu, 4 Nov 2004 10:58:16 -0600, Robert Citek <[EMAIL PROTECTED]> wrote: > > On Thursday, Nov 4, 2004, at 10:49 US/Central, Scott Pham wrote: > > Why don't you just split the line and use the whitespace as separator? > > > > $line =~ s/\s+/ /; > > my > > ($record,$date,$cust,$temp1,$temp2,$temp3

Re: Need help with regex

2004-11-04 Thread Robert Citek
On Thursday, Nov 4, 2004, at 10:49 US/Central, Scott Pham wrote: Why don't you just split the line and use the whitespace as separator? $line =~ s/\s+/ /; my ($record,$date,$cust,$temp1,$temp2,$temp3,$temp4,$temp5,$shipping,$paid ) = split (/ /,$line); As I was reminded the other day, split work

RE: Need help with regex

2004-11-04 Thread Scott Pham
04 10:38 AM To: [EMAIL PROTECTED] Subject: Need help with regex Hello everyone, I have a line like the following: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC00

Re: Need help with regex

2004-11-04 Thread Robert Citek
On Thursday, Nov 4, 2004, at 09:38 US/Central, Kevin Old wrote: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC000) and a "code" that starts with UPS, or if the code doesn't start with U

Re: Need help with regex

2004-11-04 Thread Kevin Old
On Thu, 4 Nov 2004 10:05:08 -0600, Larsen, Errin M HMMA/IT <[EMAIL PROTECTED]> wrote: > > -Original Message- > > From: Kevin Old [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 04, 2004 9:38 AM > > To: [EMAIL PROTECTED] > > Subject: Need he

RE: Need help with regex

2004-11-04 Thread Larsen, Errin M HMMA/IT
> -Original Message- > From: Kevin Old [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 04, 2004 9:38 AM > To: [EMAIL PROTECTED] > Subject: Need help with regex > > > Hello everyone, > Hi! > I have a line like the following: > > my $lin

Need help with regex

2004-11-04 Thread Kevin Old
Hello everyone, I have a line like the following: my $line = "31232000 07/28/04 DUC000 NET 60 DAYS RD64 UPSGNDSVR PREPAID"; What I'm looking for in lines like this are the customer number (DUC000) and a "code" that starts with UPS, or if the code doesn't start with UPS idea

Re: Need help with regex

2004-07-31 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: So, I need some help on how to write a regexp to get the values after inflating, that is the filenames, and put them in an array. Both outputs above are stored on a $stdout php variable. Well, this list is for discussing Perl, not PHP. If you want a regexp in PHP, you'd b

Need help with regex

2004-07-31 Thread linuxnand
Hello, I have as the output of an unzip command called from a script the following: unzip test.zip Archive: test.zip inflating: arch1.txt inflating: arch2.txt inflating: arch3.txt inflating: arch4.txt inflating: arch5.txt inflating: arch6.txt The same I have from a pkware execution : pku

Need help with regex

2003-09-24 Thread Segree, Gareth
> MAN 2 MAN18800101.eps The filenames will not have this sort of naming convention. Files will look like the following. ALLY20030111W.eps TEST W20030122 HELP WANTED20030901WW.eps GIRL WATCH BIRD 20030101 HELPER 20030121.CW.eps -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Re: Need help with regex

2003-09-24 Thread Rob Dixon
Gareth Segree wrote: > > I have a directory of files that I want to move to another directory. > (eg. ALLY20030111W.eps > TEST W20030122 > HELP WANTED20030901WW.eps > GIRL WATCH BIRD 20030101 > etc..) > > I want to be able to parse the filename and replace the date portion with > any

Need help with regex

2003-09-23 Thread Segree, Gareth
> I have a directory of files that I want to move to another directory. > (eg. ALLY20030111W.eps > TEST W20030122 > HELP WANTED20030901WW.eps > GIRL WATCH BIRD 20030101 > etc..) > > I want to be able to parse the filename and replace the date portion with > any date > (eg $1="ALLY"

NEED HELP WITH REGEX....

2003-07-14 Thread magelord
hi, i have this regex: \.(?!.png|.log)[^.]*$ how can i replace the .before png and log with nothing? the problem is, the alternation can be longer, like that: \.(?!.png|.log|.txt|.c|.cpp and so on )[^.]*$ how could i do that? THANKS:-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Help with regex

2001-09-18 Thread Rasoul Hajikhani
Curtis, thanks for your email. My $args is just a string. Would that make any difference? -r Curtis Poe wrote: > > --- Rasoul Hajikhani <[EMAIL PROTECTED]> wrote: > > Hi there, > > I am trying to match an expression that would perform different tasks > > depending on the returned value: > > > >

Re: Help with regex

2001-09-18 Thread Curtis Poe
--- Rasoul Hajikhani <[EMAIL PROTECTED]> wrote: > Hi there, > I am trying to match an expression that would perform different tasks > depending on the returned value: > > #if (arguments begin with " Knowing how your data gets into the system is at least as important as how y

Help with regex

2001-09-18 Thread Rasoul Hajikhani
Hi there, I am trying to match an expression that would perform different tasks depending on the returned value: #if (arguments begin with "