getting string through regex

I'm maintaining someone else's code and for some reason it is unable to match certain portions of the string.
The regex doesn't make that much sense to me
here is a sample of the html
<a href="/lt-H%C3%A9rr%C2%9C-amp-Pa%C3%9Fw%C3%B6rt%C2%B4s-gt-Tue-Feb-12-13-03-02-2008/lm/RSN9WU4RQ9QBM/ref=cm_lm_pdp_title_full"><'HérrÅ  &  PaÃxwört´s'> - Tue Feb 12 13:03:02 2008</a>

the code is
use constant LM_FULLVIEW_DESC   => '/lm/';
my $rgx_lm_fullview = qr/(??{LM_FULLVIEW})|(??{LM_FULLVIEW_DESC})/;
my ($lm_id, $lm_title, $lm_date, @lm_items) = $rp_teaser_block =~
 m|
<a\ href=".*?$rgx_lm_fullview([A-Z0-9]+?)/.*?">        # match lm_id from fullview link
        (.+?)                                                    # match title
            </a>.*?
            <span\ id="lm_formattedData312".*?>
                &nbsp;\( (.*?) \)                        # match date
            </span>.*?

the match id and match title portion is not work. any help would be greatly appreciated
angelblade27Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
The regular expression:

(?x-ims:
<a\ href=".*?([A-Z0-9]+?)/.*?">         # match lm_id from fullview link
        (.+?)                                                     # match title
            </a>.*?
            <span\ id="lm_formattedData312".*?>
                &nbsp;\( (.*?) \)                         # match date
            </span>.*?
    )

matches as follows:
 
NODE                     EXPLANATION
----------------------------------------------------------------------
(?x-ims:                 group, but do not capture (disregarding
                         whitespace and comments) (case-sensitive)
                         (with ^ and $ matching normally) (with . not
                         matching \n):
----------------------------------------------------------------------
  <a                       '<a'
----------------------------------------------------------------------
  \                        ' '
----------------------------------------------------------------------
  href="                   'href="'
----------------------------------------------------------------------
  .*?                      any character except \n (0 or more times
                           (matching the least amount possible))
----------------------------------------------------------------------
  (                        group and capture to \1:
----------------------------------------------------------------------
    [A-Z0-9]+?               any character of: 'A' to 'Z', '0' to '9'
                             (1 or more times (matching the least
                             amount possible))
----------------------------------------------------------------------
  )                        end of \1
----------------------------------------------------------------------
  /                        '/'
----------------------------------------------------------------------
  .*?                      any character except \n (0 or more times
                           (matching the least amount possible))
----------------------------------------------------------------------
  ">                       '">'
----------------------------------------------------------------------
  (                        group and capture to \2:
----------------------------------------------------------------------
    .+?                      any character except \n (1 or more times
                             (matching the least amount possible))
----------------------------------------------------------------------
  )                        end of \2
----------------------------------------------------------------------
  </a>                     '</a>'
----------------------------------------------------------------------
  .*?                      any character except \n (0 or more times
                           (matching the least amount possible))
----------------------------------------------------------------------
  <span                    '<span'
----------------------------------------------------------------------
  \                        ' '
----------------------------------------------------------------------
  id="lm_formattedData     'id="lm_formattedData312"'
  312"
----------------------------------------------------------------------
  .*?                      any character except \n (0 or more times
                           (matching the least amount possible))
----------------------------------------------------------------------
  >                        '>'
----------------------------------------------------------------------
  &nbsp;                   '&nbsp;'
----------------------------------------------------------------------
  \(                       '('
----------------------------------------------------------------------
  (                        group and capture to \3:
----------------------------------------------------------------------
    .*?                      any character except \n (0 or more times
                             (matching the least amount possible))
----------------------------------------------------------------------
  )                        end of \3
----------------------------------------------------------------------
  \)                       ')'
----------------------------------------------------------------------
  </span>                  '</span>'
----------------------------------------------------------------------
  .*?                      any character except \n (0 or more times
                           (matching the least amount possible))
----------------------------------------------------------------------
)                        end of grouping
----------------------------------------------------------------------
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
angelblade27Author Commented:
thanks for the great explanation of each individually but when i look at the regex it seems like it should extract the correct data but it doesn't.

<a\ href=".*?$rgx_lm_fullview([A-Z0-9]+?)/.*?">        # match lm_id from fullview link
        (.+?)                                                    # match title

should capture
RSN9WU4RQ9QBM
and
'HérrÅ  &  PaÃxwört´s'> - Tue Feb 12 13:03:02 2008
in the above url yet it doesn't match it.
for the $rgx_lm_fullview it looks like it mean it could be either of the two constants but what is the ?? preceding the constant variable used for?
0
ddrudikCommented:
You don't seem to give enough of the code, where's the assignment of LM_FULLVIEW and where's the closing of the regex pattern etc., it would seem there's at least a line or two more you should share.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Perl

From novice to tech pro — start learning today.