Whats the perl regular expression to match a string?

Discussion in 'Programming' started by needesigner.com, Dec 15, 2009.

  1. #1
    Whats the php or perl expression to match a string? Like, How to find
    a string which begins with
    <p align="right"><em>digital
    and ends with
    align="right" /></a>

    I tried <p align="right"><em>digital*align="right" /></a>
    or
    /<p align="right"><em>Sponsor(.*?)align="right" /></a>/
    don't work at all.

    reference:
    http://perldoc.perl.org/perlre.html

    Thanks!
     
    needesigner.com, Dec 15, 2009 IP