From fieldsofgarlic at gmail.com Fri Jan 13 14:34:50 2006 From: fieldsofgarlic at gmail.com (Dave Cash) Date: Fri, 13 Jan 2006 16:34:50 -0600 Subject: [Neworleans-pm] Perl Mongers Tonight Message-ID: Hello, NewOrleans.PM'ers! Sorry for the late notice, but I'll be at Fair Grinds tonight (Friday) from 5:30 to 8:00 to hang out and talk things Perladelic. Hope to see you here tonight! Dave From listservs+Tech at mm.st Thu Jan 26 11:53:01 2006 From: listservs+Tech at mm.st (listservs+Tech@mm.st) Date: Thu, 26 Jan 2006 13:53:01 -0600 Subject: [Neworleans-pm] potential Perl postion Message-ID: <1138305181.30297.252849031@webmail.messagingengine.com> Sorry if this is a dupe, I am have some issues with my email. If anyone is interested in learning about some potential opportunities at Stennis Space Center to do some Perl related stuff, email me off list at estrabd at mailcan.com for details. It will most likely be short term/contract based stuff. I am also not the primary contact, but I am doing some prescreening for them. Could someone please fwd this to BRLUG... Thanks, Brett From alex at houseofwalker.net Tue Jan 31 06:40:09 2006 From: alex at houseofwalker.net (Alex Walker) Date: Tue, 31 Jan 2006 14:40:09 +0000 Subject: [Neworleans-pm] need a little help with a RegEx Message-ID: Good morning all. This should be easy, but somehow I'm missing something. I'm inserting tags in a set of HTML files based on a couple of criteria. What I want to do is find every instance of "

" containing an image with a "usemap" tag and insert div tags around the paragraph. The HTML is a little ugly since it was generated by a WYSIWYG editor (sorry, it was like that when I got here), although the files are all relatively short I can assume that all paragraphs contain a closing "

". The easiest thing seemed to be to just slurp it and look for everything between a "

" and "

", but it's not working. Here's the problem... everything works like a champ when there is a "usemap" tag, but on instances where that tag is not there, the script still seems to be picking up the initial "

References: Message-ID: On 1/31/06, Alex Walker wrote: > Good morning all. Good morning, Alex. > This should be easy, but somehow I'm missing something. I'm inserting tags in a set of HTML files based on a couple of criteria. What I want to do is find every instance of "

" containing an image with a "usemap" tag and insert div tags around the paragraph. The HTML is a little ugly since it was generated by a WYSIWYG editor (sorry, it was like that when I got here), although the files are all relatively short I can assume that all paragraphs contain a closing "

". The easiest thing seemed to be to just slurp it and look for everything between a "

" and "

", but it's not working. > > Here's the problem... everything works like a champ when there is a "usemap" tag, but on instances where that tag is not there, the script still seems to be picking up the initial "

[^>]*]+?usemap[^>]+?>

)#\n
$1\n
#igs; Basically, I just made the wildcard sections a little less wild. I hope that helps. Take care, Dave