i made a regex for determining if someone is a lily: /lill?(y|i(e$)?)(th|an(ne|a)?)?/gmi

explanation:

  • match lil

  • maybe match another l

  • match y or i

  • if matched i, match e if it's at the end of the string

  • maybe match th, or an

  • if matched an, maybe match ne or a

EDIT: more efficient version by @domi@donotsta.re (src: https://donotsta.re/objects/02824ead-e4a6-4aef-a129-827aab59d3ea) /lil*?[yi]([ea]|th|an(ne|a)?)?/gmi

explanation:

  • match li, then l again once or twice

  • match y or i

  • maybe match one of:

    • e or a

    • th

    • an, then ne or a

Jan 17, 2024, 3:45 PM
5 0 2

comments

youre so silly

so true :3