in reply to Regex match last

You probably only want to match characters that are not > or /:

use 5.010; use strict; use warnings; $_ = q[<c:t="AD2343"/><c:p>65677676</c:p>]; m{<([^>/]+)/>} && say $1

Replies are listed 'Best First'.
Re^2: Regex match last
by Anonymous Monk on Aug 20, 2012 at 10:35 UTC
    i want to match only <c/> not </c> or <c>.