Subject:
|
Re: Regular Expression help?
|
Newsgroups:
|
lugnet.off-topic.geek
|
Date:
|
Wed, 9 Jul 2003 13:27:19 GMT
|
Viewed:
|
474 times
|
| |
| |
In lugnet.off-topic.geek, David Eaton wrote:
> In lugnet.off-topic.geek, Dan Boger wrote:
> > On Tue, Jul 08, 2003 at 06:44:29PM +0000, David Eaton wrote:
> > > For *BORDER* tags, you're in luck:
> > >
> > > /<img(\s+[^bB]\w+=("[^"]"|\S*))*>/i
> > ^
> > missing "*" here --------/
>
> Woops, yep
David,
Thanks for this additional approach. I thought that I had tried something
similar to this, but I must have gotten some portion of it wrong, as I could get
no matches in my data.
Thanks again,
-Andy Lynch
|
|
Message is in Reply To:
| | Re: Regular Expression help?
|
| (...) Woops, yep (...) ? Wouldn't it not, since it matches on the double quote first? IE it would match alt="........." as a single dealy? I'll test.... Ran as a test: foreach( '<img src="foo.jpg">',# matches '<img border="" src="foo.jpg">',# no (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|