Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: regexp::assemble and dispatch-table with unicode

by ikegami (Pope)
on Jan 08, 2010 at 17:07 UTC ( #816359=note: print w/replies, xml ) Need Help??


in reply to regexp::assemble and dispatch-table with unicode

U+2009 matches \s, so you go in an infinite loop.

First pass of while loop: "SGB\x{0020}I" gets replaced with "SGB\x{2009}I"
Second pass of while loop: "SGB\x{2009}I" gets replaced with "SGB\x{2009}I"
Third pass of while loop: "SGB\x{2009}I" gets replaced with "SGB\x{2009}I"
...

Sorry, I can't help find you a solution right now. I gotta run.

Replies are listed 'Best First'.
Re^2: regexp::assemble and dispatch-table with unicode
by ajan (Initiate) on Jan 08, 2010 at 17:14 UTC

    Uups

    I was not aware of that

    Sometimes one can really be blind

    Thanks, that helps me further

    ajan

      RA has no obvious support for global searching. As a quick fix, you could replace \s with something more specific.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://816359]
help
Chatterbox?
[Corion]: I hope all is well marto! ;) My godson had a surprise visit to the hospital yesterday because he fell and had cut his skin besides his eye, but everything was glued together again and all is well
[marto]: good grief, that's not fun, glad to hear all is as well as could be :)
[Corion]: marto: Yeah - their mother picked all three of them up at the kindergarden to then go to the hospital, and all three of them were well behaved, and all also were quite obedient when they came home, so they recognized the situation
[Corion]: Nice to see that the kids have some understanding of important things that happen and the appropriate behaviour :)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2016-12-08 09:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (137 votes). Check out past polls.