dear all,

i want to make some search and replace within a string where I can
define a set of characters, especially parenthesis, brackets etc.,
which are to be ignored.

For example, I have the following string:

sdjfh sdf sjkdfh sdkjfh sdjkf f[o]o(bar) hsdkjfh sdkljfhs  sjfh sdkj
sdjkfh sdjfh ska

A search and replace for 'foobar' should result in the following
string:

sdjfh sdf sjkdfh sdkjfh sdjkf ##f[o]o(bar)## hsdkjfh sdkljfhs  sjfh
sdkj sdjkfh sdjfh ska

I tried doing this with Unicode::Collate but with this module the
search and replace is very slow and lacks some flexibility.

Is it possible to make this kind of search and replace with a regular
expression, or does somebody know of an existing perl module which can
do this?

tia,
Frank


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to