Re(2): grep matching
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 47909
interpreted = N
texte = >I tried everything I could think of to be able to search for an end >square bracket within a character list (delimited by [] in grep), but >it will not work. I can search for the character by itself, and I can >make it work in a character list in BBEdit, but I can't make it work in >WebDNA.The weird thing is that if I have only one occurence of [some web site->http://www.somewebsite.com] then it works. It stops working when thereare 2 occurences of stuff within brackets because it looks l;ike the grepmatching happens between the fist open bracket it finds and the last one,thus breaking my link building pattern.See
for the live sample which lookslike this :bla bla bla[some web site->http://www.somewebsite.com]bli bli blichanges correctly to bla bla bla
some web sitebli bli blibutbla bla bla[some web site->http://www.somewebsite.com]bli bli bli[some other site->http://www.otherwebsite.com]blu blu bluturns to :bla bla bla
some web site bli bli bli [someother site->http://www.otherwebsite.com] blu blu bluIt is almost working and I don't think it is the same problem youencountered. I thuink the grep is trying to match the biggest pattern itcan find where I would like to have the smallest pattern possible.That's weird ...Laurent-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>I tried everything I could think of to be able to search for an end >square bracket within a character list (delimited by [] in grep), but >it will not work. I can search for the character by itself, and I can >make it work in a character list in BBEdit, but I can't make it work in >WebDNA.The weird thing is that if I have only one occurence of [some web site->http://www.somewebsite.com] then it works. It stops working when thereare 2 occurences of stuff within brackets because it looks l;ike the grepmatching happens between the fist open bracket it finds and the last one,thus breaking my link building pattern.See for the live sample which lookslike this :bla bla bla[some web site->http://www.somewebsite.com]bli bli blichanges correctly to bla bla blasome web sitebli bli blibutbla bla bla[some web site->http://www.somewebsite.com]bli bli bli[some other site->http://www.otherwebsite.com]blu blu bluturns to :bla bla bla some web site bli bli bli [someother site->http://www.otherwebsite.com] blu blu bluIt is almost working and I don't think it is the same problem youencountered. I thuink the grep is trying to match the biggest pattern itcan find where I would like to have the smallest pattern possible.That's weird ...Laurent-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
laurent pladys
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Moment of Thanks (1997)
Re[2]: when is failing to [URL]ize values in a comparison ri (1999)
WebCat2: Items xx to xx shown, etc. (1997)
Quit revisited (1997)
Date search - yes or no (1997)
How do you TEAM Code? (2004)
credit card (1997)
Password Authentication - request example (1998)
docs for WebCatalog2 (1997)
TCPconnect to DNS (2000)
No subject given (2000)
Emailer file formats (1998)
Fun With [TCP Connect] (1998)
Problem: 3.0 doesn't update carts (1997)
can WC render sites out? (1997)
Date search - yes or no (1997)
Big Databases (1997)
Is this possible, WebCat2.0 and checkboxes (1997)
WebCat editing, SiteGuard & SiteEdit (1997)
Prepaid monthly subscription order fulfillment question (2004)