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:

[WebDNA] HTML [sendmail] revisited (2009) [Capitalize] (1998) Two stores, one server (1998) TCPConnect , can I get an example, pretty please. (2002) Share cost of training videos! (1998) Commitdatabase tag (1998) Template Encrypt Speed (1998) searching by date (1998) Code validation (was: problem using...) (2004) [WebDNA] Ubuntu 16.04.4 LTS (2018) WebCat2.0b15-to many nested [xx] tags (1997) [WebDNA] Suggested Platform (2013) Developer Edition - Connection Limit (2006) PCS Frames (1997) Opinion: [input] should be called [output] ... (1997) Problem displaying search result (1997) Multi-processor Mac info ... (1997) Hosts who have upgraded to v5.0? (2003) Number searching/formats (1998) Cart # Starting at 1000 (2000)