Leitchn has asked for the wisdom of the Perl Monks concerning the following question:
OK - I know there are various tools out there to do this, but I need to do it myself.
So here goes......
What I'm currently trying to do is get the children from this line in a DTD file:
I'm currently drowning in regexps, and my current attempt is wildly off track - can anyone point out where I'm going wrong?
TIA
Nick.
So here goes......
What I'm currently trying to do is get the children from this line in a DTD file:
<!ELEMENT ORDER (NAME,DELIVERY,PAYMENT,ORDERNUMBER)>
I'm currently drowning in regexps, and my current attempt is wildly off track - can anyone point out where I'm going wrong?
while ($dtdLine=~/(\((.*?)\,|\,(.*?))/sg){ push(@children,$1); print "@children\n"; }
TIA
Nick.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Using regexps to parse an XML DTD file
by the_slycer (Chaplain) on Nov 26, 2000 at 06:54 UTC | |
by Leitchn (Acolyte) on Nov 26, 2000 at 07:09 UTC | |
by merlyn (Sage) on Nov 26, 2000 at 07:50 UTC | |
Re: Using regexps to parse an XML DTD file
by Leitchn (Acolyte) on Nov 26, 2000 at 06:40 UTC | |
Re: Using regexps to parse an XML DTD file
by Leitchn (Acolyte) on Nov 26, 2000 at 06:15 UTC | |
by jptxs (Curate) on Nov 26, 2000 at 07:08 UTC |
Back to
Seekers of Perl Wisdom