Skip to main content
5 of 5
minor update
Arnauld
  • 207k
  • 21
  • 189
  • 674

Regex (ECMAScript), 19 bytes

/\bill(?![aiouy])/i

Try it online!

Explanation

We look for ...

/             //
  \b          // a word boundary
  ill         // followed by "ill"
  (?![aiouy]) // not immediately followed by a, i, o, u or y
/i            // in case-insensitive mode
Arnauld
  • 207k
  • 21
  • 189
  • 674