[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Omaha.pm] regex preference



Title: [11707] trunk/Control/XML/Neville.pm: fixed hole in pattern match

Re:

 

   if ( $in_string =~ /<HotelCode>$code/mgi || $in_string =~ /<mfResort>$code/mgi ) {

 

I prefer

 

   if ( $in_string =~ /<(HotelCode|mfResort)>$code/mgi ) {

 

Or a full XML parse.   :)

 

$0.02,

 

j