Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Regex for Multibyte Characters

by ww (Archbishop)
on Oct 21, 2005 at 15:05 UTC ( #502035=note: print w/replies, xml ) Need Help??


in reply to Regex for Multibyte Characters

AM:

Insufficient detail.

What have you tried? What is the range within which the 'version number' can fall (eg ( 1 or 2 or 3 ) or ( a#c79foo or f or whatever68 )?

At first glance the info you have presented suggests s///ing everything between "CHT string" and its repeat.

Replies are listed 'Best First'.
Re^2: Regex for Multibyte Characters
by Articuno (Beadle) on Oct 21, 2005 at 22:31 UTC
    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
      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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://502035]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-01-22 17:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?