in reply to looking for a regexp
That said, a basic Regexp to match simple HTML is:
You will also have to match any whitespace before the first tag, but you can probably handle that./<[^>]*>/ #matches an HTML tag #So you would want: # s/(<[^>]*>[^<\s]*)\s+/$1\ /g #Should match a tag followed by some non-tag, non whitespace, followed + by whitespace. Untested.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: looking for a regexp
by merlyn (Sage) on Jun 09, 2000 at 02:54 UTC | |
by swiftone (Curate) on Jun 09, 2000 at 17:39 UTC |