I have a bit of a problem here. In a file I'm reading, I have;
<article send-id="Cwebwire-cnet_mainU2031" itemname="wed/cz/Cwebwire-cnet_main.2031.html">
I'm trying to parse out the last little bit. I have tried;
$_ =~ m,<article send-id="(.+?)" itemname="(.+?)">,sig and $string = $2;
$_ =~ m,article send-id=(.+?) itemname=(.+?),sig and $string = $2;
$_ =~ m,<article send-id=\"(.+?)\" itemname=\"(.+?)\">,sig and $string = $2;
....and several other combinations, but all of them don't give me the right results. Does anyone know why this would not be working? The variable $_ contains several new lines in it, so I'm wondering if it has something thing to do with the fact they are on newlines, and its not finding the match.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
<article send-id="Cwebwire-cnet_mainU2031" itemname="wed/cz/Cwebwire-cnet_main.2031.html">
I'm trying to parse out the last little bit. I have tried;
$_ =~ m,<article send-id="(.+?)" itemname="(.+?)">,sig and $string = $2;
$_ =~ m,article send-id=(.+?) itemname=(.+?),sig and $string = $2;
$_ =~ m,<article send-id=\"(.+?)\" itemname=\"(.+?)\">,sig and $string = $2;
....and several other combinations, but all of them don't give me the right results. Does anyone know why this would not be working? The variable $_ contains several new lines in it, so I'm wondering if it has something thing to do with the fact they are on newlines, and its not finding the match.
Cheers
Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!