BetterTweetDeck icon indicating copy to clipboard operation
BetterTweetDeck copied to clipboard

Not sure this is a bug , but valid REGEX not working

Open JimDop opened this issue 2 years ago • 3 comments

/$.$.$/s

or

$.$.$/s

Will match a count of the $ char if there are 3 or more in a tweet. Not working when tried under the muting option. Tested as good in a regex engine

Tried various flavors of regex, none seem to work .

JimDop avatar Aug 24 '21 02:08 JimDop

no one ?

JimDop avatar Aug 26 '21 17:08 JimDop

Multiple things to note:

  • Regexes in BTD only use a single modifier g, so writing /anything/s isn't necessary/doesn't work anyway. It should just be anything
  • Aside that, are you escaping the $ properly? Since that equates to matching the end. (Should be \$)
  • Furthermore, just using . inbetween doesn't work either because that only accounts for a single "any" character, it should be .+

If I test the regex, the valid one should be \$.+\$.+\$ for the input instead.

In general, not every regex tends to work with the filter mechanism of TweetDeck, not sure what exactly causes it, but sometimes it requires some experimentation as well.

pixeldesu avatar Aug 27 '21 15:08 pixeldesu

$.$.$.*

This works, (note * not +) but only if the $ is on the same line

Cant figure out how to get the match to count all characters in the tweet (ie jump across newlines) , without using that /s modifier

JimDop avatar Sep 02 '21 03:09 JimDop