> Bullshit, mixed the regexes together: OK, complete part looks like this now:
>
#
#testsystem
#
if ( // .. /<\/testsystem>/){ #lock for tag
paragraf testsystem
my $line =$_;
Got it, used unless ( // .. /<\/testsystem>/) instead of if (
// .. /<\/testsystem>/) and it works!!!
Thanks
Johannes
> so I would be working all of the sneek and peek
> that I recommend in
> http://www.wetware.com/drieux/pbl/RegEx/paraHablarRegular.txt
> all inside of
> so I would be working all of the sneek and peek
> that I recommend in
> http://www.wetware.com/drieux/pbl/RegEx/paraHablarRegular.txt
> all inside of the
> while() {
> }
[Theuerkorn Johannes] Ok, played around with the paraHablar..
" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: AW: AW: parsing xml files for variables
Date: Wed, 5 Jun 2002 14:12:59 +0200
Hmm, somehow your script seems not to work,... :-(
I just get this Kind of Output after parsing the sample file below,...
>First Test System: Test System 1
On Wednesday, June 5, 2002, at 08:31 , Theuerkorn Johannes wrote:
> Ok, found one easy solution: as I need to parse the whole file anyway, i
> am removing all newline by doing:
>
> if (open(LOG,"$fileName")) {
>
>open (temp1,"$temp");
>while ()
>{
> chomp;
>
; -Urspr> üngliche Nachricht-
> Von: kris hoch [SMTP:[EMAIL PROTECTED]]
> Gesendet am: Dienstag, 4. Juni 2002 16:53
> An: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Betreff: Re: AW: parsing xml files for variables
>
> Johannes,
> I have copied and pas
Johannes,
I have copied and pasted some same code and data. Look for the "Sample
Code" and Sample Data" in this message.
Let me know if this helps
Kristofer
=
-[ Sample Code file (TestSystem.pl) ]-
ECTED]>
Subject: Re: parsing xml files for variables
Date: Tue, 4 Jun 2002 06:25:00 -0700
On Tuesday, June 4, 2002, at 05:12 , Theuerkorn Johannes wrote:
>
[..]
>I try like that:
>
>snip
>#looking for Trigger
On Tuesday, June 4, 2002, at 05:12 , Theuerkorn Johannes wrote:
>
[..]
> I try like that:
>
> snip
> #looking for Trigger
>
> if (/\s/ .. /<\/testsystem>\s/)
> {
> if ( /^(.*)\s+/) {
> $test
Hi there,
i got a bunch of XML files an just want to parse Them for a special trigger to load
the Data after that trigger in a variable and later in my MySQL Database.
I try like that:
snip
#looking for Trigger
if (/\s/ .. /<\/test
10 matches
Mail list logo