Boost logo

Boost :

From: Thaddeus L. Olczyk (olczyk_at_[hidden])
Date: 2003-05-04 23:43:37

I've been searching the documentation for way to do regular expression
substitition of groups.

For example: Given the regex;
"My[ ]+name[ ]+is[ ]+($NAME)[.]+
I[ ]+live[ ]+at[ ]+($ADDRESS)[.]+
My[ ]+email[ ]+address[ ]+is[ ]+($EMAIL)"

I search some string for a match, find this:
"My name is $NAME . I live at $ADDRESS.
I am an acountant. My email address is $EMAIL"

and want to substitute
"Bob Smith" for $NAME
"1600 Pensylvania Ave." for $ADDRESS
"bob_at_[hidden]" for $EMAIL.

I have not been able to find a method that will do this for me.

Thaddeus L. Olczyk
Think twice, code once.

Boost list run by bdawes at, gregod at, cpdaniel at, john at