FAQ
Here are some useful Regex patterns to help you filter and forward messages based on specific content.
Note:
Always enable Regex Mode when using these patterns.
Use \bword\b to match a full word only.
Escape special characters like . β \. when needed.
π Q: How do I forward messages that contain Telegram links?
Regex Pattern:
(telegram\.me|t\.me)/\w+Example Message:
Join us at https://t.me/example_channel.
β Result: Message will be forwarded.
β« Q: How do I forward messages that contain either βblackβ or βwhiteβ?
Regex Pattern:
(black|white)Example Message:
The shirt is black, and the shoes are white.
β Result: Message will be forwarded.
π Q: How to match the word βesβ as a whole word only?
Regex Pattern:
Example Message:
This is es.
β Result: Message will be forwarded.
π§ Q: How to forward messages that contain both βwork1β and βwork2β?
Regex Pattern:
Example Messages:
β I have work1 to do and work2 as well.
β work1 and work2 are both important.
β Only work1 is complete. β Not forwarded
π¨ Q: How do I forward messages that contain either βredβ or βblueβ?
Regex Pattern:
Example Message:
The car is blue.
β Result: Message will be forwarded.
Last updated
Was this helpful?