Problem with regex

2014-10-06 Thread punit jain
Hi, I have a regex problem. My current working program is like this :- #!/usr/bin/perl *$str='ldap:///uid=user1,ou=People,o=test.com ,mailto:us...@test.com ,ldap:///uid=user2,ou=People,o=test.com ,ldap:///uid=user3,ou=People,o=test.com ';* whi

Re: Problem with regex

2014-10-06 Thread Kent Fredric
On 7 October 2014 05:04, punit jain wrote: > it breaks. I tried multiple regex, however could not get it working. > Any clue on regex changes to accomodate this ? > > 1. You said you have a regex, and that you can't get it working, but what is it that isn't working? 2. This might not be applicabl

Re: Problem with regex

2014-10-06 Thread Paul Johnson
On Mon, Oct 06, 2014 at 09:34:15PM +0530, punit jain wrote: > Hi, > > I have a regex problem. My current working program is like this :- > > > #!/usr/bin/perl > > *$str='ldap:///uid=user1,ou=People,o=test.com > ,mailto:us...@test.com > ,ldap:///uid=user2,ou=People,o=test.com >

Re: Problem with regex

2014-10-06 Thread punit jain
Thanks Paul. However I think I couldnot explain the problem. The issue is when I have mailid's as well as a part of input stream. Input stream ---> $str="ldap:///uid=user1,ou=People,o=test.com,a...@test.com ,t...@test.com,r...@test.com,ldap:///uid=user2,ou=People,o=test.com ,ldap:///uid=user3,ou

Re: Problem with regex

2014-10-06 Thread John Delacour
> On 6 Oct 2014, at 18:57, punit jain wrote: > > Thanks Paul. However I think I couldnot explain the problem. > > The issue is when I have mailid's as well as a part of input stream. > > Input stream ---> $str="ldap:///uid=user1,ou=People,o=test.com > ,a...@test.com

problem with regex qr operator

2015-06-25 Thread Mike Martin
Hi I am currently getting issues with regexes that use the qr operator. The results with qr are different than without. This is a small sample program to illustrate it use strict; my $str='Database Administrator'; my $pattern= '(?=^(?:(?!(?:datab|network|system)).)*$).*(?:Adm(?:in(?:i?strat(?:o

Re: problem with regex qr operator

2015-06-25 Thread Brandon McCaig
Mike: On Thu, Jun 25, 2015 at 5:42 AM, Mike Martin wrote: > Hi > I am currently getting issues with regexes that use the qr operator. > > The results with qr are different than without. This is a small sample > program to illustrate it > > use strict; > > my $str='Database Administrator'; > my $p

problem with regex in a while loop.

2007-08-24 Thread Pat Rice
Hi all, I'm trying to get the follwoing to work: what I am aiming to do is the following: 1. Read a file 2. Regex the df file and look for the line which contains "Used". Problem: - part 1 reads the file, confirmed, because I output this to the screen - Part 2 Is where the problem is, as I connot

Re: problem with regex in a while loop.

2007-08-24 Thread Tom Phoenix
On 8/24/07, Pat Rice <[EMAIL PROTECTED]> wrote: > open (DATA, "$data_file") or die "can't open $data_file $!"; > my @array_of_data = ; That reads the entire file into the array. > while ($line = ) That goes back to try to read more, but you're already at end-of-file. So it won't find anything.