Enable regex mode for searching messages


11 kommentarer

  • ConsumerJunk

    That would be really cool, especially if it could be used with from: and other search parameters, like "(from:(regex:'*')"

  • ||Jojo||
    This would definitely help to find a specific message
  • l0c4lh057

    I wish there were more upvotes for this... Hopefully someone @discord sees this and thinks it is a great idea, we really need this!


  • Archi
    Your suggestion is really good. We definitely need that.
  • noammiz007

    I agree, The current search mode is too simple




  • zleet


  • l0c4lh057

    Discord already has rate limiting. They could just add a ratelimit for searching or increase it if it already has one. Or just increase the rate limit for searches when it uses regex. There are options discord can consider for less server lag. And I doubt that many users will use that feature since who in the world knows what regex is and how to use it? But for users who know how to use regex it would really be great to be able to use it.

  • Frezer_02

    It stunned me when I discovered that discord doesn't have this feature. Like what the fuck?

  • purpzie

    Just wanted to leave this here for why this wouldn't be a good idea - certain regex can lag a computer a TON, and assuming Discord handles searches on their side, this gives people the ability to just completely lag Discord.

    In fact, a single regex was enough to shut cloudflare down for a little while: https://blog.cloudflare.com/cloudflare-outage/

  • jogerj

    If users won't use regex, bots will. 

    As much as I want this feature, there are many ways it's abuse-able. That's said it's not entirely impossible. 

    Regex that break things usually use complicated look-ahead/behind rules which don't limit how far they lookup.
    By putting proper limitations, it's definitely doable without putting servers on a strain.

    e.g. implement essentials like wildcards only (no look-behind/look-ahead, no grouping) + char minimum limit, search filtering ("-donotmatch"), "match exact words"

  • Xx_SuPeRsLaYeR_xX

    por que?


Du måste logga in om du vill lämna en kommentar.