Lípínguapua dopo PêpêTUT language translatorEnglish to Alien translatorPrint the missing charactersMaking octogonal wordsHidden sentences in the license platesRepeat a rhyme and loop on the vowelsCheck if a string is entirely made of the same substringIs it double speak?
Why command hierarchy, if the chain of command is standing next to each other?
Do Reform Jews believe in a theistic God?
How can God warn people of the upcoming rapture without disrupting society?
Why is there a large performance impact when looping over an array over 240 elements?
Are differences between uniformly distributed numbers uniformly distributed?
Why is Python 2.7 still the default Python version in Ubuntu?
Simplification of numbers
How would you translate this? バタコチーズライス
The cat ate your input again!
Does Nightpack Ambusher's second ability trigger if I cast spells during the end step?
Is it okay for a ticket seller to grab a tip in the USA?
(A room / an office) where an artist works
The cat exchanges places with a drawing of the cat
How do you deal with the emotions of not being the one to find the cause of a bug?
How should I write this passage to make it the most readable?
How far did Gandalf and the Balrog drop from the bridge in Moria?
Boss asked a co-worker to assault me
Are there any other rule mechanics that could grant Thieves' Cant?
How can I communicate my issues with a potential date's pushy behavior?
Weird resistor with dots around it
How can I find an old paper when the usual methods fail?
Why aren’t there water shutoff valves for each room?
How to find directories containing only specific files
Escape Velocity - Won't the orbital path just become larger with higher initial velocity?
Lípínguapua dopo Pêpê
TUT language translatorEnglish to Alien translatorPrint the missing charactersMaking octogonal wordsHidden sentences in the license platesRepeat a rhyme and loop on the vowelsCheck if a string is entirely made of the same substringIs it double speak?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
Língua do Pê, or P Language, is a language game spoken in Brazil and Portugal with Portuguese. It is also known in other languages, such as Dutch and Afrikaans. (Wikipedia)
There are some dialects in this language game. The different languages the game is played with even have their own unique dialects. Some people are fluent in speaking P Language and the best can even translate any text to their preferred dialect on the spot!
P Language
In this challenge, we will use the Double Talk dialect.
To translate text into P Language, any sequence of vowels in the text is appended with a single p
character followed by a copy of the sequence of vowels.
Challenge
Write a function or program that accepts a string as input and outputs its translation in P Language.
- The input consists only of printable ASCII characters.
- The output consists only of the translated input and optionally a trailing newline.
- Vowels are any of the following characters
aeiouyAEIOUY
. - A sequence of vowels is delimited by any other character. The string
"Aa aa-aa"
has three vowel sequences. - Leading and trailing whitespace may optionally be omitted from the translated output string.
Examples
"" => ""
"Lingua do Pe" => "Lipinguapua dopo Pepe"
"Hello world!" => "Hepellopo woporld!"
"Aa aa-aa" => "AapAa aapaa-aapaa"
"This should be easy, right?" => "Thipis shoupould bepe eapeasypy, ripight?"
"WHAT ABOUT CAPS?" => "WHApAT ApABOUpOUT CApAPS?"
" Hi " => " Hipi " or "Hipi"
The double quotes character "
is used to delimit the input and output strings in the examples but obviously this character may also appear in any valid input string.
code-golf string
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
Língua do Pê, or P Language, is a language game spoken in Brazil and Portugal with Portuguese. It is also known in other languages, such as Dutch and Afrikaans. (Wikipedia)
There are some dialects in this language game. The different languages the game is played with even have their own unique dialects. Some people are fluent in speaking P Language and the best can even translate any text to their preferred dialect on the spot!
P Language
In this challenge, we will use the Double Talk dialect.
To translate text into P Language, any sequence of vowels in the text is appended with a single p
character followed by a copy of the sequence of vowels.
Challenge
Write a function or program that accepts a string as input and outputs its translation in P Language.
- The input consists only of printable ASCII characters.
- The output consists only of the translated input and optionally a trailing newline.
- Vowels are any of the following characters
aeiouyAEIOUY
. - A sequence of vowels is delimited by any other character. The string
"Aa aa-aa"
has three vowel sequences. - Leading and trailing whitespace may optionally be omitted from the translated output string.
Examples
"" => ""
"Lingua do Pe" => "Lipinguapua dopo Pepe"
"Hello world!" => "Hepellopo woporld!"
"Aa aa-aa" => "AapAa aapaa-aapaa"
"This should be easy, right?" => "Thipis shoupould bepe eapeasypy, ripight?"
"WHAT ABOUT CAPS?" => "WHApAT ApABOUpOUT CApAPS?"
" Hi " => " Hipi " or "Hipi"
The double quotes character "
is used to delimit the input and output strings in the examples but obviously this character may also appear in any valid input string.
code-golf string
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
add a comment |
$begingroup$
Língua do Pê, or P Language, is a language game spoken in Brazil and Portugal with Portuguese. It is also known in other languages, such as Dutch and Afrikaans. (Wikipedia)
There are some dialects in this language game. The different languages the game is played with even have their own unique dialects. Some people are fluent in speaking P Language and the best can even translate any text to their preferred dialect on the spot!
P Language
In this challenge, we will use the Double Talk dialect.
To translate text into P Language, any sequence of vowels in the text is appended with a single p
character followed by a copy of the sequence of vowels.
Challenge
Write a function or program that accepts a string as input and outputs its translation in P Language.
- The input consists only of printable ASCII characters.
- The output consists only of the translated input and optionally a trailing newline.
- Vowels are any of the following characters
aeiouyAEIOUY
. - A sequence of vowels is delimited by any other character. The string
"Aa aa-aa"
has three vowel sequences. - Leading and trailing whitespace may optionally be omitted from the translated output string.
Examples
"" => ""
"Lingua do Pe" => "Lipinguapua dopo Pepe"
"Hello world!" => "Hepellopo woporld!"
"Aa aa-aa" => "AapAa aapaa-aapaa"
"This should be easy, right?" => "Thipis shoupould bepe eapeasypy, ripight?"
"WHAT ABOUT CAPS?" => "WHApAT ApABOUpOUT CApAPS?"
" Hi " => " Hipi " or "Hipi"
The double quotes character "
is used to delimit the input and output strings in the examples but obviously this character may also appear in any valid input string.
code-golf string
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
$endgroup$
Língua do Pê, or P Language, is a language game spoken in Brazil and Portugal with Portuguese. It is also known in other languages, such as Dutch and Afrikaans. (Wikipedia)
There are some dialects in this language game. The different languages the game is played with even have their own unique dialects. Some people are fluent in speaking P Language and the best can even translate any text to their preferred dialect on the spot!
P Language
In this challenge, we will use the Double Talk dialect.
To translate text into P Language, any sequence of vowels in the text is appended with a single p
character followed by a copy of the sequence of vowels.
Challenge
Write a function or program that accepts a string as input and outputs its translation in P Language.
- The input consists only of printable ASCII characters.
- The output consists only of the translated input and optionally a trailing newline.
- Vowels are any of the following characters
aeiouyAEIOUY
. - A sequence of vowels is delimited by any other character. The string
"Aa aa-aa"
has three vowel sequences. - Leading and trailing whitespace may optionally be omitted from the translated output string.
Examples
"" => ""
"Lingua do Pe" => "Lipinguapua dopo Pepe"
"Hello world!" => "Hepellopo woporld!"
"Aa aa-aa" => "AapAa aapaa-aapaa"
"This should be easy, right?" => "Thipis shoupould bepe eapeasypy, ripight?"
"WHAT ABOUT CAPS?" => "WHApAT ApABOUpOUT CApAPS?"
" Hi " => " Hipi " or "Hipi"
The double quotes character "
is used to delimit the input and output strings in the examples but obviously this character may also appear in any valid input string.
code-golf string
code-golf string
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 8 hours ago
Maarten Bamelis
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 8 hours ago
Maarten BamelisMaarten Bamelis
1265 bronze badges
1265 bronze badges
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Maarten Bamelis is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
6 Answers
6
active
oldest
votes
$begingroup$
Japt, 10 bytes
r"%y+"_+ip
Try it
r"%y+"_+ip :Implicit input of string
r :Replace
"%y+" :RegEx /[aeiouy]+/gi
_ :Pass each match through a function
+ : Append a copy of the match
ip : Prepended with "p"
$endgroup$
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes"%v"
->v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd needy
instead ofv
.
$endgroup$
– Shaggy
6 hours ago
add a comment |
$begingroup$
JavaScript (ES6), 35 bytes
s=>s.replace(/[aeiouy]+/gi,'$&p$&')
Try it online!
Where the special replacement pattern $&
means matched substring.
$endgroup$
1
$begingroup$
I did not know about$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!
$endgroup$
– recursive
6 hours ago
add a comment |
$begingroup$
Sed, 30, 25, 21, 19 Bytes
-5 Bytes Thanks to Arnauld!
-4 Bytes Thanks to Shaggy!
-2 Bytes Thanks to Leo Tenenbaum!
s/[aeiouy]+/&p&/gi
Try it Online!
$endgroup$
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
add a comment |
$begingroup$
Retina 0.8.2, 17 bytes
i`[aeiouy]+
$&p$&
Try it online! Link includes test cases. Explanation: Trivial regexp approach; the i
flag turns on case insensitivity (Retina already defaults to a global match).
$endgroup$
add a comment |
$begingroup$
Jelly, 20 bytes
Żṁe€ØyŒg$$,j”pƊ€ÐeẎḊ
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 5 -p
, 20 bytes
s/[aeiouy]+/$&p$&/gi
Try it online!
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "200"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Maarten Bamelis is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f189930%2fl%25c3%25adp%25c3%25adnguapua-dopo-p%25c3%25aap%25c3%25aa%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
Japt, 10 bytes
r"%y+"_+ip
Try it
r"%y+"_+ip :Implicit input of string
r :Replace
"%y+" :RegEx /[aeiouy]+/gi
_ :Pass each match through a function
+ : Append a copy of the match
ip : Prepended with "p"
$endgroup$
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes"%v"
->v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd needy
instead ofv
.
$endgroup$
– Shaggy
6 hours ago
add a comment |
$begingroup$
Japt, 10 bytes
r"%y+"_+ip
Try it
r"%y+"_+ip :Implicit input of string
r :Replace
"%y+" :RegEx /[aeiouy]+/gi
_ :Pass each match through a function
+ : Append a copy of the match
ip : Prepended with "p"
$endgroup$
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes"%v"
->v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd needy
instead ofv
.
$endgroup$
– Shaggy
6 hours ago
add a comment |
$begingroup$
Japt, 10 bytes
r"%y+"_+ip
Try it
r"%y+"_+ip :Implicit input of string
r :Replace
"%y+" :RegEx /[aeiouy]+/gi
_ :Pass each match through a function
+ : Append a copy of the match
ip : Prepended with "p"
$endgroup$
Japt, 10 bytes
r"%y+"_+ip
Try it
r"%y+"_+ip :Implicit input of string
r :Replace
"%y+" :RegEx /[aeiouy]+/gi
_ :Pass each match through a function
+ : Append a copy of the match
ip : Prepended with "p"
edited 6 hours ago
answered 7 hours ago


ShaggyShaggy
20.9k3 gold badges20 silver badges71 bronze badges
20.9k3 gold badges20 silver badges71 bronze badges
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes"%v"
->v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd needy
instead ofv
.
$endgroup$
– Shaggy
6 hours ago
add a comment |
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes"%v"
->v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd needy
instead ofv
.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes
"%v"
-> v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
Darn it, 2 minutes too late! I had the exact same answer, except it used Japt 2.0 short regexes
"%v"
-> v
$endgroup$
– Embodiment of Ignorance
7 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd need
y
instead of v
.$endgroup$
– Shaggy
6 hours ago
$begingroup$
@EmbodimentofIgnorance, you'd need
y
instead of v
.$endgroup$
– Shaggy
6 hours ago
add a comment |
$begingroup$
JavaScript (ES6), 35 bytes
s=>s.replace(/[aeiouy]+/gi,'$&p$&')
Try it online!
Where the special replacement pattern $&
means matched substring.
$endgroup$
1
$begingroup$
I did not know about$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!
$endgroup$
– recursive
6 hours ago
add a comment |
$begingroup$
JavaScript (ES6), 35 bytes
s=>s.replace(/[aeiouy]+/gi,'$&p$&')
Try it online!
Where the special replacement pattern $&
means matched substring.
$endgroup$
1
$begingroup$
I did not know about$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!
$endgroup$
– recursive
6 hours ago
add a comment |
$begingroup$
JavaScript (ES6), 35 bytes
s=>s.replace(/[aeiouy]+/gi,'$&p$&')
Try it online!
Where the special replacement pattern $&
means matched substring.
$endgroup$
JavaScript (ES6), 35 bytes
s=>s.replace(/[aeiouy]+/gi,'$&p$&')
Try it online!
Where the special replacement pattern $&
means matched substring.
edited 7 hours ago
answered 7 hours ago


ArnauldArnauld
89.8k7 gold badges104 silver badges366 bronze badges
89.8k7 gold badges104 silver badges366 bronze badges
1
$begingroup$
I did not know about$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!
$endgroup$
– recursive
6 hours ago
add a comment |
1
$begingroup$
I did not know about$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!
$endgroup$
– recursive
6 hours ago
1
1
$begingroup$
I did not know about
$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!$endgroup$
– recursive
6 hours ago
$begingroup$
I did not know about
$&
. All these years, I've been wrapping the whole regex in a capture group. Who said code golf is impractical?!$endgroup$
– recursive
6 hours ago
add a comment |
$begingroup$
Sed, 30, 25, 21, 19 Bytes
-5 Bytes Thanks to Arnauld!
-4 Bytes Thanks to Shaggy!
-2 Bytes Thanks to Leo Tenenbaum!
s/[aeiouy]+/&p&/gi
Try it Online!
$endgroup$
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
add a comment |
$begingroup$
Sed, 30, 25, 21, 19 Bytes
-5 Bytes Thanks to Arnauld!
-4 Bytes Thanks to Shaggy!
-2 Bytes Thanks to Leo Tenenbaum!
s/[aeiouy]+/&p&/gi
Try it Online!
$endgroup$
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
add a comment |
$begingroup$
Sed, 30, 25, 21, 19 Bytes
-5 Bytes Thanks to Arnauld!
-4 Bytes Thanks to Shaggy!
-2 Bytes Thanks to Leo Tenenbaum!
s/[aeiouy]+/&p&/gi
Try it Online!
$endgroup$
Sed, 30, 25, 21, 19 Bytes
-5 Bytes Thanks to Arnauld!
-4 Bytes Thanks to Shaggy!
-2 Bytes Thanks to Leo Tenenbaum!
s/[aeiouy]+/&p&/gi
Try it Online!
edited 10 mins ago
answered 7 hours ago


Zachary CottonZachary Cotton
5792 silver badges5 bronze badges
5792 silver badges5 bronze badges
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
add a comment |
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
It doesn't look like you need the parentheses within your RegEx.
$endgroup$
– Shaggy
6 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
$begingroup$
19 bytes: tio.run/##BcGxCsIwEAbg/Z7id@mikkco0SWDYMEUB3U4yZEcBCONofTp4/…
$endgroup$
– Leo Tenenbaum
4 hours ago
add a comment |
$begingroup$
Retina 0.8.2, 17 bytes
i`[aeiouy]+
$&p$&
Try it online! Link includes test cases. Explanation: Trivial regexp approach; the i
flag turns on case insensitivity (Retina already defaults to a global match).
$endgroup$
add a comment |
$begingroup$
Retina 0.8.2, 17 bytes
i`[aeiouy]+
$&p$&
Try it online! Link includes test cases. Explanation: Trivial regexp approach; the i
flag turns on case insensitivity (Retina already defaults to a global match).
$endgroup$
add a comment |
$begingroup$
Retina 0.8.2, 17 bytes
i`[aeiouy]+
$&p$&
Try it online! Link includes test cases. Explanation: Trivial regexp approach; the i
flag turns on case insensitivity (Retina already defaults to a global match).
$endgroup$
Retina 0.8.2, 17 bytes
i`[aeiouy]+
$&p$&
Try it online! Link includes test cases. Explanation: Trivial regexp approach; the i
flag turns on case insensitivity (Retina already defaults to a global match).
answered 6 hours ago
NeilNeil
87.1k8 gold badges46 silver badges183 bronze badges
87.1k8 gold badges46 silver badges183 bronze badges
add a comment |
add a comment |
$begingroup$
Jelly, 20 bytes
Żṁe€ØyŒg$$,j”pƊ€ÐeẎḊ
Try it online!
$endgroup$
add a comment |
$begingroup$
Jelly, 20 bytes
Żṁe€ØyŒg$$,j”pƊ€ÐeẎḊ
Try it online!
$endgroup$
add a comment |
$begingroup$
Jelly, 20 bytes
Żṁe€ØyŒg$$,j”pƊ€ÐeẎḊ
Try it online!
$endgroup$
Jelly, 20 bytes
Żṁe€ØyŒg$$,j”pƊ€ÐeẎḊ
Try it online!
answered 6 hours ago


Erik the OutgolferErik the Outgolfer
35.5k4 gold badges30 silver badges110 bronze badges
35.5k4 gold badges30 silver badges110 bronze badges
add a comment |
add a comment |
$begingroup$
Perl 5 -p
, 20 bytes
s/[aeiouy]+/$&p$&/gi
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 5 -p
, 20 bytes
s/[aeiouy]+/$&p$&/gi
Try it online!
$endgroup$
add a comment |
$begingroup$
Perl 5 -p
, 20 bytes
s/[aeiouy]+/$&p$&/gi
Try it online!
$endgroup$
Perl 5 -p
, 20 bytes
s/[aeiouy]+/$&p$&/gi
Try it online!
answered 6 hours ago


wastlwastl
2,6196 silver badges28 bronze badges
2,6196 silver badges28 bronze badges
add a comment |
add a comment |
Maarten Bamelis is a new contributor. Be nice, and check out our Code of Conduct.
Maarten Bamelis is a new contributor. Be nice, and check out our Code of Conduct.
Maarten Bamelis is a new contributor. Be nice, and check out our Code of Conduct.
Maarten Bamelis is a new contributor. Be nice, and check out our Code of Conduct.
If this is an answer to a challenge…
…Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.
…Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
Explanations of your answer make it more interesting to read and are very much encouraged.…Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.
More generally…
…Please make sure to answer the question and provide sufficient detail.
…Avoid asking for help, clarification or responding to other answers (use comments instead).
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f189930%2fl%25c3%25adp%25c3%25adnguapua-dopo-p%25c3%25aap%25c3%25aa%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown