I posted this a while back, which might be helpful: Re^3: Removing Foreign Characters. There are other ways, of course, (I recall posting at least one other method myself), but that was the first one I found.

Update: Found a couple more... this one's also a bit old: Re: Diacritic-Insensitive and Case-Insensitve Sorting, and this one (the most recent) is my favorite: Re: fill diacritic into text. Have fun.

Another update: I realize I might be answering the wrong question -- and that's because there's some doubt about what your question really is. You say you're looking for

an easy way to make a regex pattern match ignore the accents on letters in other languages? For example, so that the word "café" and "cafe" would match (ie. ignore that the e's are actually different characters).

Um, so that "cafe" and "café" would match as opposed to what? The easiest way to make a regex ignore things is to use "." (e.g. /caf./ will match "cafe" and "café" and "cafè" and ... and caff and ...). How "exact" do you really need to be in your regex matching?

Are you really looking for a way to remove accents so you can do an exact match (eq or ne) to an unaccented string? (That's sort of what my various cited nodes are about.)


In reply to Re: making international characters generic by graff
in thread making international characters generic by mwhiting

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.