Hi Try this one
Make use of \Q\E format.
$subrecdelim = '^';
$mystr = 'cat^dog^pony^rat';
@array = split(/\Q$subrecdelim\E/, $mystr);
foreach (@array) {
print - $_\n;
}
Cheers.
Regards,
Prasad
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Hi,
Your Find patter is wrong.
Use the following Pattern:
s/([\t]\d{2}[:]\d{2}[\s])/\1/;
Regards,
Gopal.R
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
Malcolm Mill
Sent: Wednesday, November 03, 2004 2:41 AM
To: [EMAIL PROTECTED]
Subject: regex help
Hello,
Using xml twig, I am trying to supply two elements in a line with the
separator tab.
Ex:
c
dl
ABCCDE
addeerwe
sdfsdfserewrwe
/dl
/c
Expected Result:
c
dl
firstABC/firstsecondCDE/second
firstadd/firstsecondeerwe/second
firstsdfsdfs/firstseconderewrwe/second
/dl
/c
Obtained