Guide · SMS Forwarder
Filters, keywords and regex in SMS Forwarder
By Hohol Apps ·
SMS Forwarder’s filters decide which texts leave your iPhone. There’s one list for the whole app, and it’s checked on the phone before anything is encrypted or sent. With an empty list, every text is forwarded. Add one entry and only matching texts go out.
How matching works
These rules apply to every entry, keyword or regex:
- The list is global. It applies to all forwarding rules at once, not per rule.
- Only the message body is checked. The sender’s number and name are not part of the match.
- Keyword matching ignores case and diacritics, so “code”, “Code” and “CODE” behave alike, as do “código” and “codigo”. Turkish i, İ, ı and I are treated as the same letter.
- Any single match is enough. A text matching one entry is forwarded, even if it matches nothing else.
- An empty list means “forward everything”.
Texts that don’t match are dropped on the iPhone. They’re never sent to our server and they don’t use your free forwards.
The honest limit: you can’t route by sender or send different texts to different destinations. Every enabled rule gets every text that passes the list.
Keywords
A keyword matches when it appears anywhere in the body. It doesn’t have to be a whole word, so “code” also matches “barcode” and “discount code”. Keep keywords specific. A bank’s name, as it appears in its own texts, is often a better filter than a general word.
Good keyword sets are small. For codes in two languages, “code” and “kod” might be all you need, depending on the wording your services use.
Regex filters
Regex filters were added in version 1.5. In the filter list they appear wrapped in slashes, as /pattern/, which is how the app tells them apart from keywords. Add your own the same way, slashes included.

The built-in “Forward verification codes” pattern
The app offers one regex as a one-tap example, “Forward verification codes”:
/(?<!\d)(\d{4}|\d{6})(?!\d)/
Read it in three parts. (?<!\d) means “not directly after a digit”. (\d{4}|\d{6}) means exactly four or exactly six digits. (?!\d) means “not directly before a digit”. Together: a standalone 4- or 6-digit number.
It matches “Your code is 4821” and “482913 is your code”. It doesn’t match 5-, 7- or 8-digit codes, codes split like “482 913”, or letter-and-number codes. It does match some non-codes, such as a year in a date or “card ending 4417”.
Other patterns you can add
Each of these is a separate entry, and any match forwards the text.
Standalone numbers of 4 to 8 digits, for services that use longer codes:
/(?<!\d)\d{4,8}(?!\d)/
Codes split into two groups of three by a space or hyphen, like “482 913” or “482-913”:
/(?<!\d)\d{3}[ -]\d{3}(?!\d)/
The words “code”, “OTP” or “passcode” as whole words, so “barcode” doesn’t count. The (?i) at the start makes the regex ignore case:
/(?i)\b(code|otp|passcode)\b/
The 4-to-8-digit pattern is broader than the built-in one and will catch more amounts, years and reference numbers. Pick the narrowest pattern that covers your services.
Invalid regex never matches
If a regex can’t be read as a valid pattern, that entry never matches. When it’s your only entry, the list isn’t empty but nothing can match it, so nothing is forwarded. After adding or editing a filter, have someone send you two texts, one that should pass and one that shouldn’t, and check History to see that only the first went out.
For when to use code filters and the security trade-offs of forwarding codes, see forwarding 2FA codes. The security page explains why filtering on the phone is the strongest privacy control the app has. If texts stop arriving after a filter change, start with the troubleshooting guide.
Questions
Frequently asked
Can I filter by sender?
No. Entries are compared with the words inside the SMS, never the number or contact name it came from. A word that only that sender uses in its texts is the nearest substitute.
Do filtered-out texts count against my free forwards?
No. A message that fails the filter is discarded on the device, never reaches our server and uses none of your allowance.
What happens if I type a broken regex?
That entry simply never matches anything. If it's the only entry in the list, no messages will go out at all, so test after every change.