Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regex with condition

by jeffa (Bishop)
on Nov 18, 2015 at 22:54 UTC ( [id://1148067]=note: print w/replies, xml ) Need Help??


in reply to Regex with condition

This was asked and answered just yesterday ... er 2 days ago: y/·/./ gives two points instead of one.

You need to add use utf8;

use utf8; my $str = ' {Weiß am Zug} *'; $str =~ s/Weiß/Schwarz/g; print $str;

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-03-29 07:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found