Revision f1d90445-f3d9-4eaa-a40a-57ec17bcfea1 - Code Golf Stack Exchange

# [Python 2], 58 bytes

*-30 bytes by realizing it can be as simple as [Arnauld's JS answer].*

<!-- language-all: lang-python -->

 lambda s:re.search('[^aeiouy]([^aeiouy]|$)',s)<1
 import re

[Try it online!][TIO-j7duy3ar]

[Python 2]: https://docs.python.org/2/
[Arnauld's JS answer]: https://codegolf.stackexchange.com/a/142279/68615
[TIO-j7duy3ar]: https://tio.run/##PY7BCsIwEETv/Yo9CGlBBD0W@yW1wtpubbDNhs1GqPjvkVTxMvOGmcP4VSd2pzQ2lzTjchsQQi10CITST6Vpr0iW49qVf3rvKrMP1flY2MWzKAglpaABGmjNhEpmD2bm5@aefZxR7GtL2ONAy5px5Zht4Rh@FYvL4KJuecoaVNjdM404f4ceBR9EarqiGFnAgnWwHajBi3UKY2mr9AE "Python 2 – Try It Online"

AltStyle によって変換されたページ (->オリジナル) /