Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
if ($tmp_buffer =~ /^<CASE-STUDY/i) { $tmp_buffer =~ /<CASE-STUDY[^>]*><TOPIC-INFO><TITLE>([^<]*)<\/TITLE +>/i; my($xtitle) = $1; $tmp_buffer =~ s/<CASE-STUDY([^>]*)>/<TOPIC ID="" HEADING-LEVEL="1" +><TOPIC-INFO><TITLE>$xtitle<\/TITLE><\/TOPIC-INFO><CASE-STUDY$1>/i; $tmp_buffer =~ s/(<CASE-STUDY.*?<\/CASE-STUDY>)<\/INSERT-TOPIC>/$1< +\/TOPIC>/si; print "debug - $&\n"; }
<INSERT-TOPIC> <CASE-STUDY ID="1"><TOPIC-INFO><TITLE>Case Study</TITLE></TOPIC-INFO> <PARA>poop</PARA> </CASE-STUDY> </INSERT-TOPIC>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why doesn't the search engine start from scratch
by ikegami (Patriarch) on Jan 27, 2012 at 23:39 UTC |