in reply to Regex match last
#!/usr/bin/perl use strict; use warnings; my $data = '<c:t="AD2343"/><c:p>65677676</c:p>'; if ($data =~ m@.*(<c:[^>]*/>).*@) { print("Match: [$1]\n"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex match last
by Anonymous Monk on Aug 20, 2012 at 10:34 UTC | |
by BrowserUk (Patriarch) on Aug 20, 2012 at 11:28 UTC | |
by MidLifeXis (Monsignor) on Aug 20, 2012 at 12:30 UTC | |
by Neighbour (Friar) on Aug 20, 2012 at 11:32 UTC | |
by Anonymous Monk on Aug 20, 2012 at 10:55 UTC |