On Wed, 17 Feb 2010, Karsten Br?ckelmann wrote:

On Wed, 2010-02-17 at 10:55 -0800, John Hardin wrote:
That's where I started this, and then I ran into a situation where I
wanted to collapse whitespace, at which point things went south.

Hmm... Collapsing whitespace. Going back to the original RE, and what it
probably was meant to be. "A minimum of 175 chars other than [:;] before
the tag closing, with any whitespace ignored."

 /(?:\s*[^\s:;<]){175}/

What about that, then? :)  Unlike the original, this one simply swallows
any whitespace and operates on a minimum number of non-whitespace, non-
style definition syntax (very basic set). Whereas the original RE
happily would have accepted 1*175, up until 20*175 chars of pure
whitespace. Hardly gibberish, but just a waste of bandwidth. ;)

I tried something like that and it didn't perform well, but trying it again it seems to work. I wonder what I messed up the first time I tried it?

Testing...

--
 John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
 [email protected]    FALaholic #11174     pgpk -a [email protected]
 key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Gun Control laws aren't enacted to control guns, they are enacted
  to control people: catholics (1500s), japanese peasants (1600s),
  blacks (1860s), italian immigrants (1911), the irish (1920s),
  jews (1930s), blacks (1960s), the poor (always)
-----------------------------------------------------------------------
 5 days until George Washington's 278th Birthday

Reply via email to