[za-pm] Text::Format

Sean Carte sean.carte at gmail.com
Wed Aug 29 22:27:31 PDT 2012


On 29 August 2012 21:53, Anne Wainwright <anotheranne at fables.co.za> wrote:
>                {'^Mrs?\.
> => '^\S+,'^\S+ => '^(?:S|J)r\.}
>
>            don't break names such as Mr. Jones, Mrs. Jones, Jones Jr.

>
> So I have the following to get my regex into a hash:
>
>     my  %regx = ('^isbn=>'^[0-9]{9,13}X?);  # my regex

Not that I know anything about this, but, given the example above,
shouldn't your regex be more like:

'^isbn=>'^\S+[0-9]{9,13}X?

That is, including the whitespace?

Sean
-- 
Sean Carte
DUT E-Repository Administrator
+27 72 898 8775
+27 31 373 2490
fax: 0866741254
ir.dut.ac.za


More information about the Za-pm mailing list