in reply to Re^3: replace some emoticons - search pattern needed
in thread replace some emoticons - search pattern needed
Wow! That's really impressing, what you do with your shell. Suppose I have to read perlrun to learn all this stuff!
Finally I understood, for what I have to search: \x{1f618} !!!
But why my replacement is not working?
I am stumbled! marek
while(<>) { # foreach (/\x{1f618}/g) {print "hurray! And here is your emoticon!\n" +}; # this is working!!! # foreach (/\x{1f695}/g) {print "hurray! And here is your emoticon!\n" +}; # this is working!!! This is for the taxi s/\x{1f618}/latex_code/g; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: replace some emoticons - search pattern needed
by Anonymous Monk on Dec 19, 2014 at 11:20 UTC | |
by marek1703 (Acolyte) on Dec 19, 2014 at 11:37 UTC | |
by RonW (Parson) on Dec 19, 2014 at 18:48 UTC |