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

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31381
interpreted = N
texte = Thanks, your explanation helps a lot, and so will this book I hope ... :)>O'Reilly makes the best book I have seen on the subject.. It's called >Mastering Regular Expressions.. At any rate.. > >\[text # searches for the occurrence of [text.. The \ escapes the [ >which has meaning in regular expressions. > >\] # searches for the occurrence of ] which also has to be escaped > >As for what's in between.. > >([^\]]#) > >I know the () stores whatever it find in a memory slot so you can use >it later.. > >I'm not exactly sure what [^\]]# does, but based on it's context, I >believe it grabs everything between [text and ]. > >In the replacement, \0 calls up what you stored in memory between the (). > >Does this help? I'm sorry if my explanation is poor.. > >Jereme > > >> >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 > >-- >Jereme Claussen jeremec@darkhorse.com >Web Developer Dark Horse Comics >503.652.8815.330 http://www.dhorse.com/ >I mustn't fear.. Fear is the mime killer.. > >############################################################# >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 ================================ 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 Associated Messages, from the most recent to the oldest:

    
Thanks, your explanation helps a lot, and so will this book I hope ... :)>O'Reilly makes the best book I have seen on the subject.. It's called >Mastering Regular Expressions.. At any rate.. > >\[text # searches for the occurrence of [text.. The \ escapes the [ >which has meaning in regular expressions. > >\] # searches for the occurrence of ] which also has to be escaped > >As for what's in between.. > >([^\]]#) > >I know the () stores whatever it find in a memory slot so you can use >it later.. > >I'm not exactly sure what [^\]]# does, but based on it's context, I >believe it grabs everything between [text and ]. > >In the replacement, \0 calls up what you stored in memory between the (). > >Does this help? I'm sorry if my explanation is poor.. > >Jereme > > >> >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 > >-- >Jereme Claussen jeremec@darkhorse.com >Web Developer Dark Horse Comics >503.652.8815.330 http://www.dhorse.com/ >I mustn't fear.. Fear is the mime killer.. > >############################################################# >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 ================================ 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 Kenneth Grome

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:

webcat NT (1998) Help needed! (1998) Process SSI and WebCatalog.acgi (1998) can webcat create directories on NT? (1997) Thanks ! (1997) Problems with [Applescript] (1997) Coding Technique (2000) [LOOKUP] (1997) autosensing lanague selection (1997) Tip: Image Maps (Server-Side) with WebCatalog (1997) Been meaning to ask... (1997) RSS Reader - WebDNA (2007) OT - those using fckeditor........ (2005) question about checkboxes (1999) Authenticate (1997) WebDNA :: Product Reviews (2006) Max Record length restated as maybe bug (1997) PCS Customer submissions ? (1997) Using Plug-In while running 1.6.1 (1997) state? (2004)