Author:
erics, April 7th, 2015
Create the file /etc/postfix/virtual-regexp. For example, forward all emails with a leading eric and ending with @thewyz.net to a Gmail account:
|
/eric.*/@thewyz.net wyzaerd@gmail.com |
Edit the file /etc/postfix/main.cf. Add regexp:/etc/postfix/virtual-regexp to the virtual_alias_maps line. For example:
|
virtual_alias_maps = hash:/etc/postfix/virtual, regexp:/etc/postfix/virtual-regexp |
Generate the map .db file:
|
postmap /etc/postfix/virtual-regexp |
This example requires the files virtual and virtual.db to exist, even if they are […]
Categories: How-To's, Technology Tags: Email, Expression, Forward, howto, main.cf, PostFix, Regex, Regular, Regular Expression, Regular Expressions, tips, Virtual, virtual_alias_maps, virtual.db
|
2 comments
Author:
erics, November 3rd, 2011
RegExp.exec(string) Applies the RegExp to the given string, and returns the match information.
|
var match = /s(amp)le/i.exec("Sample text") |
match then contains [“Sample”,”amp”] RegExp.test(string) Tests if the given string matches the Regexp, and returns true if matching, false if not.
|
var match = /sample/.test("Sample text") |
match then contains false String.match(pattern) Matches given string with the RegExp. With g flag returns an array containing the […]
Categories: Rants Tags: howto, javascript, JQuery, JS, Regex, Regular Expressions, tips
|
No comments