Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAm sure this is correct, but the expected translates you to youyay (as if it begins with a vowel). But heres my go, it deals with the punctuation, casing and spaces (so many trailing spaces 😮 ) would like to come back to this and make it more reasuable.
Had to do it two times because I didn't like how I did it the first time.
This is a great example of
a) a challenge that is directly tied to some of the interactive training that's available https://community.alteryx.com/t5/Interactive-Lessons/Using-RegEx-in-Expressions/ta-p/424427
b) a workflow that is different during development than the final product
Good fun - thank you!
There are a number of different solutions here, I have used regex in mine, but I'm not sure how well it would work if there were numbers as well as letters.
There are two important things we should concern in this case:
1) The Message will be truncated due to its format (V_String-89), so we should modify the format first.
2) About the Pig_Latin rules, I used "A/E/I/O/U" as the key to find out transfer rules. But there's an exception when I compare the result. That is "you", we should transfer it to "youyay" other than "ouyay". So I added "you" into vowel list.