• 0 posts
  • 1 comment
Joined 2 years ago
Cake day: July 3rd, 2024
  • Hmm, can I RegEx this?

    [\s-]AI[-,\.\s]
    

    This is assuming it’s not at the start of the article.

    EDIT: Thinking about it 2 more seconds, this might actually be more precise:

    [\W_]AI[\W_]
    

    Doing more, like \WAI would filter words like “ailment”. Haven’t found a word matching AI\W yet, but I’m careful atm.