On Jun 2, Siegfried Heintze said:

How do I write a pattern for removing roman numerals? The first 10 is
enough.

Well, the first ten roman numerals are:

  I, II, III, IV, V, VI, VII, VIII, IX, X

Just put those in a regex.

  s/\b(I|II|...)\b//g;

would remove roman numerals, provided they aren't touching any word characters.

--
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to