Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAThis one was a marathon but I think i got the fundamentals at least. In the end I think I got the language aspect but unfortunately the punctuation was a casualty.
Found it very interesting that if you try to keep everything as a sentence and you use RegEx_Replace to replace strings, words like "I'm" are treated as 2 words - I and 'm, but words like "Don't" are treated as one.
Any suggestions to get around this?
Also, can you work with functions like TitleCase inside of a Regex_Replace? Otherwise, you need to separate the words, in which case my first paragraph doesn't apply. @AYXAcademy ?
Cheers!
Esther
Tried to do it all in Regex, but finally had to cheat at the end and use a formula tool to fix some pesky apostrophes...
Thanks to @Jbrooks and @PaceParillo for your helpful advice!
I did most of mine using the RegEx tool, but also had trouble with "I'm," so I kind of cheated and fixed all of these instances with a Replace() function in the formula tool. Here's what I did:
Iway onderway etherwhay isthay allengechay elpthay emay ackletay anyway ealray ifelay enarioscay oweverHay Iway inkthay atthay isthay asway omethingsay atthay idday elphay emay actisepray omesay oremay egExRay
anksThay orfay ethay uzzlepay
estBay
olandRay
Fun catching all the mistakes I made along the way. I love practicing RegEx. For my solution I took out the indentation & line breaks.
@estherb47 I used title case once I got to the point where I had my words all sorted out (less capitalization) and it worked, even with leading non-alphas.
**Edit: Didn't see you asked for the functionality within RegEx
@ZenonH TitleCase for the win!! That's what I used as well 🙂
Interesting one, and certainly found use for the skills I learned after @OllieClarke introduced me to RegEx Crosswords.
Two things to note:
- The example in the comment moves the ay to before the apostrophe while the solution moves it to after (ended up solving both ways)
- The solution turns "you" into "youyay" which I don't think is normal in pig latin
Anyway, solution attached.