[ back to toc ]

regular expression

Date: 2002/05/06 11:10

I'm trying to find an example of how to properly use regsub(), Ive read
the man file but no examples there and I'm still confused...

Keep in mind, I'm a TCL coder and am new to C -- regsub was quite easy in
that language (regsub -all -- <expression> <in_string> <replace_with>

Thank you.

I never used regsub in C. I usually used it from Perl and I wrote a
wrapper that calls regsub in C for the language ScriptBasic. (The module
RE does that.)

I could write some examples for you, but that would require me to read the
man pages again (I did it two years ago), understand them and write the
examples. This is approximately 2 hours of time that I do not have at the
moment for the purpose. (As a matter of fact I also have flu and

I am certain that you will be able to succeed. Please try to test the
regcomp/regexec/regfree functions from C and if you get stucked ask me for


[ back to toc ]