Skip to main content
deleted 4 characters in body
Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36

PHP, 123121 Bytes

$v=aeiouy;preg_match("#(.*?[$v]+([^$v])).*?([$v])#",$argn,$t);echo$t[1],strtr($z=strtr($z=$t[2]$t[2].$t[3]).$z,bcdfgkpstvz,pgtvkgbzdfs);,$z;

Try it online!Try it online!

PHP, 123 Bytes

$v=aeiouy;preg_match("#(.*?[$v]+([^$v])).*?([$v])#",$argn,$t);echo$t[1],strtr(($z=$t[2].$t[3]).$z,bcdfgkpstvz,pgtvkgbzdfs);

Try it online!

PHP, 121 Bytes

$v=aeiouy;preg_match("#(.*?[$v]+([^$v])).*?([$v])#",$argn,$t);echo$t[1],$z=strtr($t[2].$t[3],bcdfgkpstvz,pgtvkgbzdfs),$z;

Try it online!

Source Link
Jörg Hülsermann
  • 13.3k
  • 3
  • 15
  • 36

PHP, 123 Bytes

$v=aeiouy;preg_match("#(.*?[$v]+([^$v])).*?([$v])#",$argn,$t);echo$t[1],strtr(($z=$t[2].$t[3]).$z,bcdfgkpstvz,pgtvkgbzdfs);

Try it online!