Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Regex with condition

by jeffa (Bishop)
on Nov 18, 2015 at 22:54 UTC ( #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
Node Status?
node history
Node Type: note [id://1148067]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (2)
As of 2020-10-25 09:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favourite web site is:












    Results (249 votes). Check out past polls.

    Notices?