Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Re: Using regexps to parse an XML DTD file

by Leitchn (Acolyte)
on Nov 26, 2000 at 07:09 UTC ( [id://43340]=note: print w/replies, xml ) Need Help??


in reply to Re: Using regexps to parse an XML DTD file
in thread Using regexps to parse an XML DTD file

Excellent, thanks - out of interest though, can it be done with a single regexp?

Nick.
  • Comment on Re: Re: Using regexps to parse an XML DTD file

Replies are listed 'Best First'.
Re: Re: Re: Using regexps to parse an XML DTD file
by merlyn (Sage) on Nov 26, 2000 at 07:50 UTC
    A single regex cannot generate a variable number of backreferences. What do you think this is, Java? 1{grin}

    -- Randal L. Schwartz, Perl hacker

    1The Java regex library I saw caused /(\w+)\s+)+/ to generate a variable number of backreferences, making it impossible to know exactly what part of the match you were looking at. Evil. They just don't get it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://43340]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2025-05-22 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.