http://www.perlmonks.org?node_id=502137


in reply to Re: Regex for Multibyte Characters
in thread Regex for Multibyte Characters

But he said that the "version number" has no "format" (otherwise he could just match it).
His problem is how to match the "CHinese Traditional", multibyte, substrings in that example.

But you are correct: "Insufficient detail"
These "Multibyte" characters are Unicode ones ? Or Some-strange-encoding-that-I-don't-know ones ?

(not that I know something about encodings... ^_^;;; just clarifying things )

-- 6x9=42

Replies are listed 'Best First'.
Re^3: Regex for Multibyte Characters
by ww (Archbishop) on Oct 22, 2005 at 15:17 UTC
    Clarifying the clarification: Actually, what OP said was "The version is not always of the same format." The request is for sufficient info to have some notion of the range of variant formulae possible.

    If all the possibilities in that range are (readily) amenable to recognition with a regex, then the question of which kind of "'Multibyte' characters" might help in writing a regex.

    If the range would make regex|regexen unacceptable (read, for example, as: 'so complex as to make execution unacceptably slow'), then another approach is required.

    Perhaps the above is simply a more precise reforumulation of your intent in para 1. If so, well done!