delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/08/17/21:49:46

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: thruxton.iss.soton.ac.uk: nobody set sender to vlada AT soton DOT ac DOT uk using -f
To: cygwin AT cygwin DOT com
Subject: cygwin-perl: matching behaves weird
Message-ID: <1092793767.4122b5a7c3eef@webmail.soton.ac.uk>
Date: Wed, 18 Aug 2004 02:49:27 +0100 (BST)
From: V DOT MIRCEVSKI AT soton DOT ac DOT uk
MIME-Version: 1.0
User-Agent: IMP/PHP IMAP webmail program 2.2.6
X-Originating-IP: 152.78.64.73
X-ISS-MailScanner: Believed to be clean

Now, this may be old news for many of you, but I'm new to cygwin, so please 
don't shoot. I'd be happy if someone would post me a link to the solution.

I'm doing quite strightforward matching using regular expressions in perl (as 
you can see below) and the code used to work just fine on the ActiveState perl, 
but behaves very strange with cygwin Perl:

-------------
unless ($page =~ /<a href="\#" onClick="window\.open\('(popBibTex.cfm\?.+?)',/s)
-------------

It simply does not match. I tried playing around, cuting certain suspicios 
parts, and here is what I found out:

-------------
unless ($page =~ /on\Click="window\.open\('(popBibTex.cfm\?.+?)',/s)
-------------

this does match. (notice the \ before C)

What's up? (::confused;)

I'm runing Win_XP_Pro/SP2, just installed Cygwin (and all 
tools/packages/modules that were available through the web install utility).

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019