GREP Help
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 36592
interpreted = N
texte = We're having some fun with GREP in WebCat 4.X. Actually, when it works,it's really useful and a big timesaver. But we're having some problems withthe following GREP statement. The idea is to take each line that endswith a: and change the style on that line only.[unurl][Grep search=(^[A-Z].*[%][3][A])&replace=
\1][url][convertchars][FEAPICTTEXT1][/convertchars][/url][/Grep][/unurl]This is the sample text from the a field in the database that we'retrying to modify:This is a New Feature:This text describes the features.Isn't it a fine set of features.This is Second Feature:This text describes the features.Isn't it a fine set of features.The grep statement is matching all text through the second :, and changingthe style, which we don't want. In this application, the user enters a lotof text into one field of the database and we want to parse out thedelimited elements.What we need is it to match the first line in each para that ends with a:.Any suggestions?BTW: anyone found a good GREP reference online? Especially syntax for theREPLACE actions?Richard Kirsner-------------------------------------------------------------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://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
We're having some fun with GREP in WebCat 4.X. Actually, when it works,it's really useful and a big timesaver. But we're having some problems withthe following GREP statement. The idea is to take each line that endswith a: and change the style on that line only.[unurl][Grep search=(^[A-Z].*[%][3][A])&replace=\1][url][convertchars][FEAPICTTEXT1][/convertchars][/url][/Grep][/unurl]This is the sample text from the a field in the database that we'retrying to modify:This is a New Feature:This text describes the features.Isn't it a fine set of features.This is Second Feature:This text describes the features.Isn't it a fine set of features.The grep statement is matching all text through the second :, and changingthe style, which we don't want. In this application, the user enters a lotof text into one field of the database and we want to parse out thedelimited elements.What we need is it to match the first line in each para that ends with a:.Any suggestions?BTW: anyone found a good GREP reference online? Especially syntax for theREPLACE actions?Richard Kirsner-------------------------------------------------------------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://search.smithmicro.com/
Richard Kirsner
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:
Help Wanted/Stowe, Vermont (2001)
Help formatting search results w/ table (1997)
PR: WebCatalog Affiliates Program Announced -- Share the revenue for promoting WebCatalog (2000)
list/menus (2000)
Showing unopened cart (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Emailer again & again (1997)
[WebDNA] Authenticating with Twitter OAuth API v1.1 (2013)
WebCatalog for guestbook ? (1997)
[WebDNA] Proper use of [spawn]? (2009)
[WebDNA] webdna.us is blocked by Lightspeed Systems (2017)
# fields limited? (1997)
Custom Shipping Charges (1997)
Re:quit command on NT (1997)
Does it use the two Processors ? (1999)
Webmerchant confirmation hooks? (1997)
bug in listwords? (1998)
[WebDNA] DHL API Integration (2016)
Navigator 4.01 (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)