Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Regex with condition

by OldChamp (Acolyte)
on Nov 18, 2015 at 22:44 UTC ( #1148066=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     .....P1p1/6P1/7P/5PK1/8 w - - 4 34"]
      {Weiß am Zug}  *  .....
    1n5P/1P4PK/1q6 b - - 2 42"]
      {Weiß am Zug}  *  .....
    .......5K2/3R4 w - - 1 33"]
      {Weiß am Zug}  *  .....
    
  2. or download this
    my $line = do { local $/;  <>; }; 
    $line =~ s/\n/ /g;
    
    ...
    $line =~ s/(?<=\sb\s)Weiß/Schwarz/g;
    ...
    print $line;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1148066]
Approved by Paladin
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2019-08-24 07:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?