• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: July 3rd, 2024

help-circle
  • windpunch@feddit.orgtoSelfhosted@lemmy.world•*Permanently Deleted*
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    5 months ago

    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.