M
Mike Mimic
Hi!
I would like to make a regexp which would string that is
something like this
abcde abcde { abcde a b c d } abcde abcde
change into
abcde abcde {abcdeabcd} abcde abcde
Every space character between { and } should be deleted.
I have come to this:
1 while $string =~ s/({\S*?)\s(\S*?})/$1$2/g;
Is there some other (better) way (I do not like loops
which are maybe not necessary).
Mike
I would like to make a regexp which would string that is
something like this
abcde abcde { abcde a b c d } abcde abcde
change into
abcde abcde {abcdeabcd} abcde abcde
Every space character between { and } should be deleted.
I have come to this:
1 while $string =~ s/({\S*?)\s(\S*?})/$1$2/g;
Is there some other (better) way (I do not like loops
which are maybe not necessary).
Mike