Re: Grepping text variable tags (was: Re: No subject given)

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31392
interpreted = N
texte = The string [^\]] (or [^]] apparently under BBEdit) is a negative set. It will match every character that is not in the set, that is to say, anything not a right bracket. Whether you have to escape the ] in the expression is based on the exact implementation. I just tested it in MultiEdit with the various example strings you (and others) included, and discovered that MultiEdit will die screaming if you do not escape the ], but that my search strings worked like I designed them.I can also highly recommend the O'Reilly RegEx book. One of the things about Perl especially is that after enough experience with regex, you discover that almost everything can be fixed with the correct regex.HTHJohn PeacockKenneth Grome wrote: > > >On 5/3/00 3:55 pm, Jereme Claussen so noted... > > > >>BBEdit has an option titled Use Grep which uses standard RegEx for > >>those concerned.. > >> > >>>Or if you have an editor with regex support, you can make two passes: > >>> > >>>Search: \[text ([^\]]#)\] > >>>Replace: \[text \0&secure=f\] > > > >Slight modifications are needed for BBEdit Lite 4.6 (and I assume BBEdit > >as well): > > > >Search: \[text ([^]]*)\] > >Replace: \[text \1\&secure=f\] > > I don't know enough about grep and regex to be able to confirm or > deny that this will actually fix all the text tags for the 8 > different scenarios I listed previously. Will this *absolutely* fix > every one of those 8 situations in one pass? Would you be willing to > give me a quick explanation of what this syntax does? Thanks ... :) > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > ############################################################# > 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 > To switch to the INDEX mode, E-mail to > Send administrative queries to ############################################################# 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 To switch to the INDEX mode, E-mail to Send administrative queries to Associated Messages, from the most recent to the oldest:

    
The string [^\]] (or [^]] apparently under BBEdit) is a negative set. It will match every character that is not in the set, that is to say, anything not a right bracket. Whether you have to escape the ] in the expression is based on the exact implementation. I just tested it in MultiEdit with the various example strings you (and others) included, and discovered that MultiEdit will die screaming if you do not escape the ], but that my search strings worked like I designed them.I can also highly recommend the O'Reilly RegEx book. One of the things about Perl especially is that after enough experience with regex, you discover that almost everything can be fixed with the correct regex.HTHJohn PeacockKenneth Grome wrote: > > >On 5/3/00 3:55 pm, Jereme Claussen so noted... > > > >>BBEdit has an option titled Use Grep which uses standard RegEx for > >>those concerned.. > >> > >>>Or if you have an editor with regex support, you can make two passes: > >>> > >>>Search: \[text ([^\]]#)\] > >>>Replace: \[text \0&secure=f\] > > > >Slight modifications are needed for BBEdit Lite 4.6 (and I assume BBEdit > >as well): > > > >Search: \[text ([^]]*)\] > >Replace: \[text \1\&secure=f\] > > I don't know enough about grep and regex to be able to confirm or > deny that this will actually fix all the text tags for the 8 > different scenarios I listed previously. Will this *absolutely* fix > every one of those 8 situations in one pass? Would you be willing to > give me a quick explanation of what this syntax does? Thanks ... :) > > ================================ > Kenneth Grome, WebDNA Consultant > 808-737-6499 http://webdna.net > ================================ > > ############################################################# > 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 > To switch to the INDEX mode, E-mail to > Send administrative queries to ############################################################# 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 To switch to the INDEX mode, E-mail to Send administrative queries to John Peacock

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:

Default contains WEBDNA (1998) WebCat2 - [format thousands] (1997) Testing the WebCat Email List Members (2000) Uploading Files (2000) Help! WebCat2 bug (1997) Proposed FormVariables hierarchy (2000) RE: Help name our technology! (1997) possible, WebCat2.0 and checkboxes-restated (1997) relogin same user? (1998) ErrorMessages.db (2004) Displaying raw values (long) (1998) Time code! (2002) What is WebDNA (1997) Protect vs Authenicate (1997) [WebDNA] Styling search results [using css] (2009) WebCat2 - [format thousands] (1997) Lookup Notfound (1998) [Sum] function? (1997) expire headers in mac305b11 (1999) Nested tags count question (1997)