Re: s///gsi; with a wildcard
- From: "J. Gleixner" <glex_no-spam@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Mar 2010 10:42:48 -0500
Jason Carlton wrote:
[...]
>>>>>> Would something as simple as this be enough to consistently remove it?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 "}".
[...]
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.
.
- References:
- s///gsi; with a wildcard
- From: Jason Carlton
- Re: s///gsi; with a wildcard
- From: sln
- Re: s///gsi; with a wildcard
- From: Jason Carlton
- Re: s///gsi; with a wildcard
- From: Jason Carlton
- Re: s///gsi; with a wildcard
- From: J. Gleixner
- Re: s///gsi; with a wildcard
- From: Jason Carlton
- s///gsi; with a wildcard
- Prev by Date: Re: File formatting
- Next by Date: FAQ 6.15 How can I print out a word-frequency or line-frequency summary?
- Previous by thread: Re: s///gsi; with a wildcard
- Next by thread: FAQ 7.4 How do I skip some return values?
- Index(es):