Re: s///gsi; with a wildcard



Jason Carlton wrote:
[...]
The fonts and all that are different for each post; the only
consistency seems to be that it starts with "Normal 0 false false
false", and it ends with a "}".
>>>>>> Would something as simple as this be enough to consistently remove it?
[...]
J, should that first "}" be a "{"? Like:
> $str =~ s/Normal 0 false false false[^{]*}//gsi;

Before asking if it's not correct, why not try it?

[^}]* - match everything until it sees '}'
} - include '}' in the pattern. -- without that you'll
have '}' in your results.

I gave example text, and the output it generates, if that
doesn't match what you want, then please be a little
more verbose. Provide a -short- example of the text before,
and what you want the text to be after doing something to it.




.