FAQ

Here are some useful Regex patterns to help you filter and forward messages based on specific content.

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?