Re: grep for search, not replace
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45710
interpreted = N
texte = ScottR@benjerry.com wrote:> Thanks, John. I'm looking for it, but I don't see anything posted about grep> yesterday. Not sure what to look for. > It would have been the one with the Subject of Re: Using grep to parse Canadian Postal Codes, but basically Brian has it right. Do the grep on a copy of the original string and then decide whether the grep was sucessful or not. I liked mine better than Brian's because it was blindingly obvious when the grep matched:[text]testzip=[zip_][/text][grep search={your_search_here}&replace=OK][testzip][/grep][showif [testzip]=OK][!]whatever you want to happen[/!][/showif]John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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:
ScottR@benjerry.com wrote:> Thanks, John. I'm looking for it, but I don't see anything posted about grep> yesterday. Not sure what to look for. > It would have been the one with the Subject of Re: Using grep to parse Canadian Postal Codes, but basically Brian has it right. Do the grep on a copy of the original string and then decide whether the grep was sucessful or not. I liked mine better than Brian's because it was blindingly obvious when the grep matched:[text]testzip=[zip_][/text][grep search={your_search_here}&replace=OK][testzip][/grep][showif [testzip]=OK][!]whatever you want to happen[/!][/showif]John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------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/
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:
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
Shipping calculations (1997)
GuestBook example (1997)
Running 2 two WebCatalog.acgi's (1996)
WebCat/CyberStudio Compatibility (1998)
[SQL] on MacOs to SQL Server ... HOW TO? (2000)
Extended [ConvertChars] (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Where's Cart Created ? (1997)
Template not found error messages (1997)
Bug Report, maybe (1997)
contextual shownext (1998)
Help! WebCat2 bug (1997)
Separate SSL Server (1997)
Here we go again...WebDNA - SQL- Clustering (2006)
Shipcost update problem (1997)
Communigate+Webcat (2001)
Re:[ShowIf] and empty fields (1997)
Re:Emailer and encryption (1997)
version history page for webcat on the SM site? (2000)