Guest User

Untitled

a guest
Jun 20th, 2012
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $txt="Arkarmit ithaaatokkk ide? aaaztamindenit. tokkkal-vonoval";
  2. # megkeressuk a szukseges mintat
  3. $txt =~ /aaa(\w{5})/;
  4. # Ami a $1-be kerul. Onnan atmentjuk $text_to_replace-be
  5. $text_to_replace=$1;
  6. $txt =~ s/$text_to_replace/12345/g;
  7. print($txt);
Advertisement
Add Comment
Please, Sign In to add comment