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:

SSL data to/from webcatalog? (2000) Deleting Orders (1997) Webcatlog server not running (2008) Cleaning strings for SQL with WebCat (2005) emailer (1997) Search returns all, not 20 (1997) installing webcatalog problem. HELP! (1998) WebCatalog 402rc2 is now available (2001) WebCat2 - storing unformatted date data? (1997) Re:PCS Customer submissions ? (1997) Whois (2003) [Sum] function? (1997) [WebDNA] Ubuntu 10.4 & WebDNA 6.2 (2011) Make sure I understand this??? (1997) [format 40s]text[/format] doesn't work (1997) HomePage Caution (1997) CHMOD recursive for directories (2006) target=_blank and form variables (1997) Lookup Notfound (1998) FAX orders (1996)