Skip to main content
minor update
Source Link
Arnauld
  • 207k
  • 21
  • 189
  • 674

Regex (ECMAScript), 19 bytes

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

Try it online!

Regular expressionExplanation

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

Regex (ECMAScript), 19 bytes

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

Try it online!

Regular expression

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

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
turned into a Regex answer / added y as a vowel
Source Link
Arnauld
  • 207k
  • 21
  • 189
  • 674

JavaScriptRegex (ES6ECMAScript), 2919 bytes

(+1 byte if y counts as a vowel)

s=>/\bill(?![aiou][aiouy])/i.test(s)

Try it online!Try it online!

Regular expression

We look for ...

/             //
  \b          // a word boundary
  ill         // followed by "ill"
  (?![aiou][aiouy])  // not immediately followed by a, i, o, u or uy
/i            // in case-insensitive mode

JavaScript (ES6), 29 bytes

(+1 byte if y counts as a vowel)

s=>/\bill(?![aiou])/i.test(s)

Try it online!

Regular expression

We look for ...

/             //
  \b          // a word boundary
  ill         // followed by "ill"
  (?![aiou])  // not immediately followed by a, i, o or u
/i            // in case-insensitive mode

Regex (ECMAScript), 19 bytes

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

Try it online!

Regular expression

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
minor update
Source Link
Arnauld
  • 207k
  • 21
  • 189
  • 674

JavaScript (ES6), 29 bytes

(+1 byte if y counts as a vowel)

s=>/\bill(?![aiou])/i.test(s)

Try it online!

Regular expression

We look for ...

/             //
  \b          // a word boundary
  ill         // followed by "ill"
  (?![aiou])  // not immediately followed by a, i, o or u
/i            // in case-insensitive mode

JavaScript (ES6), 29 bytes

(+1 byte if y counts as a vowel)

s=>/\bill(?![aiou])/i.test(s)

Try it online!

Regular expression

We look for ...

/             //
  \b          // a word boundary
  ill         // followed by "ill"
  (?![aiou])  // not followed by a, i, o or u
/i            // in case-insensitive mode

JavaScript (ES6), 29 bytes

(+1 byte if y counts as a vowel)

s=>/\bill(?![aiou])/i.test(s)

Try it online!

Regular expression

We look for ...

/             //
  \b          // a word boundary
  ill         // followed by "ill"
  (?![aiou])  // not immediately followed by a, i, o or u
/i            // in case-insensitive mode
added the description of the regex
Source Link
Arnauld
  • 207k
  • 21
  • 189
  • 674
Loading
Source Link
Arnauld
  • 207k
  • 21
  • 189
  • 674
Loading