| | Re: Regular Expression help?
|
|
(...) 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 (21 years ago, 9-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) Ah. I had my little O'Reilly Perl 5 pocket reference out and was playing with "zero-width positive/negative look-ahead/behind assertion"s before I began this thread, but since I haven't used them before I wasn't sure how they worked. In any (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | 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)
|
|
| | Re: Regular Expression help?
|
|
(...) ^ missing "*" here --------/ (...) wouldn't this also break on this: <img src="1.jpg" alt="Some Text with Contrived B=something in it"> :) But other than that, good idea to look at what's valid :) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) For *BORDER* tags, you're in luck: /<img(\s+[^bB]\w+=("...|\S*))*>/i But that is on the (valid?) presumption that the ONLY attribute for an <img> tag that starts with the letter "B" is "BORDER". I suppose I could be wrong what with all the (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) doh, of course. However, unless your editor allows to do negative lookaheads, I don't think you can use a regexp to find a missing border tag. (...) hmmm. One way to do it would be to replace all the img tags that DO have the border attribute, (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) I think this will only find img tags that have a border property, but I need to find img tags that are missing the border property. (...) Thanks for the kind offer. :-) I suspect once we can isolate the lines that are offensive that it will (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) oh! well, seems that it has a similar syntax :) Anyway, the actual regexp here is: <img[^>]+border="[0-9]*" Hope that will help. By the way, if you need to edit hundreds of lines, using an automated process might save you hours and hours of (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) Hmmm, actually I am using an html editor that allows extended searches using regular expressions, so I am somewhat limited by what that allows. I should have been more specific. (...) That looks like it would work nicely, but as I said above, (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Regular Expression help?
|
|
(...) I'm assuming you mean perl's regexps? (...) I should note that you probably will have more reliable code if you didn't use a regexp here, but instead parse the html with one of the HTML::* modules... but, regexp is more fun :) (...) how about (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Regular Expression help?
|
|
Hello Regular Expression Geeks. I need a hand... Could anyone help me to build a regular expression for finding IMG tags in html files that do NOT have a "BORDER=" parameter? for example: <img src="foo.jpg"> matches <img border="" src="foo.jpg"> no (...) (21 years ago, 8-Jul-03, to lugnet.off-topic.geek)
|
|
| | Computer Recycling (was Re: Huge Sale @ Atlanta LEGO Outlet)
|
|
(...) Maybe I should have said "added incentive." I was going to wait until the Road Show, but now after looking at the pictures, I don't know if I can wait that long. The last time I went to Discover, the NGLTC was incoveniently at Dawsonville. And (...) (21 years ago, 8-Jul-03, to lugnet.loc.us.ga, lugnet.off-topic.geek, FTX)
|
|
| | Re: Rechargeable Batteries - with correct link :)
|
|
(...) Those would be known as "carbon-zinc" batteries. We tend to name our battery types based on what chemicals are used to store/provide power. I'm not sure you can even buy them in the standard letter-graded battery types anymore. Certainly not (...) (21 years ago, 5-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: Rechargeable Batteries - with correct link :)
|
|
(...) My primary reason for using them is that they're less expensive than non-rechargables in the long run, and my secondary reason is that I never have to walk out the door with half-depleted batteries. My reason for using them over Ni-Cads is the (...) (21 years ago, 5-Jul-03, to lugnet.off-topic.geek)
|
|
| | Re: I need help with pov-ray
|
|
(...) Wow thanks. I inserted the little version thing and it worked! Im going to try a few more files tonite to make sure its not a fluke, then ill close up this thread. Thanks -Spencer (21 years ago, 4-Jul-03, to lugnet.cad.ray, lugnet.off-topic.geek, lugnet.cad, lugnet.people.newbie, lugnet.publish)
|
|
| | Re: I need help with pov-ray
|
|
(...) (21 years ago, 4-Jul-03, to lugnet.cad.ray, lugnet.off-topic.geek, lugnet.cad, lugnet.people.newbie, lugnet.publish)
|
|
| | Re: I need help with pov-ray
|
|
(...) Here it is-a deep link (URL) There are 3 tabs at the top, are you trying to run colors.inc? or the (...) Im running desk-doesnt work, but when i try to run it the colors.inc pops up and gives me the error (...) Once again here it is: (URL) (...) (21 years ago, 4-Jul-03, to lugnet.cad.ray, lugnet.off-topic.geek, lugnet.cad, lugnet.people.newbie, lugnet.publish)
|
|
| | Re: I need help with pov-ray
|
|
(...) Ok, I can see the picture you posted now, but I do not see the error message. There are 3 tabs at the top, are you trying to run colors.inc? or the Desk-dosen't work.pov? To see the error message window, go to the pull down menus. Select (...) (21 years ago, 4-Jul-03, to lugnet.cad.ray, lugnet.off-topic.geek, lugnet.cad, lugnet.people.newbie, lugnet.publish)
|
|
| | Re: I need help with pov-ray
|
|
(...) No it is NOT a deep link. Deep links provide the *ACTUAL* file name at the end of the url. Here is an example. This link will get you to the folder with all the images. (URL) how it has a number at the end of it) This link IS A DEEP LINK to a (...) (21 years ago, 4-Jul-03, to lugnet.cad.ray, lugnet.off-topic.geek, lugnet.cad, lugnet.people.newbie, lugnet.publish)
|
|
| | Re: I need help with pov-ray
|
|
(...) thats odd. Its a deep link. I guess all i can do is wait for it to be modded and ask everyone to be patient :) (21 years ago, 4-Jul-03, to lugnet.cad.ray, lugnet.off-topic.geek, lugnet.cad, lugnet.people.newbie, lugnet.publish)
|