On 1/29/2011 7:51 PM, Wietse Venema wrote:
Jerrale G:
/^(.*)127\.0\.0\.\d+(.*)$/
REPLACE $1173.50.101.12$2
Surely, you will see warnings that $1173 is not a valid index.
We dont get any warnings with our OWN. We only get warnings using any
examples that have been given to us through this mailing list.
You need to read the section titled "TEXT SUBSTITUTION" in the
pcre_table manpage
TEXT SUBSTITUTION
Substitution of substrings from the matched expression into the result
string is possible using the conventional perl syntax ($1, $2, etc.);
specify $$ to produce a $ character as output. The macros in the
result string may need to be written as ${n} or $(n) if they aren't
This is what cause us to use the following two days ago, BEFORE we were
even posting here.
/^(.*)127\.0\.0\.\d+(.*)$/
REPLACE${1}173.50.101.12${2}
followed by whitespace.
If you can't read what the rules say, then you should not use Postfix.
Wietse
-- Well it seems if we cant UNDERSTAND the man pages completely that we
shouldnt expect clarification. PCRE is NOT perl even though it uses
perl; therefore, we cannot use it and require your man pages to do so.
Since your man pages give NO examples for string manipulation, we are
here. And now we seem be subject to being scrutinized.
We will change the headers with or without pcre.
We're sorry for wasting your time.
Jerrale G.
SC Senior Admin