Re: Grep and removing text
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45194
interpreted = N
texte = >Ok, I have tried about every variation of code I could come up with and>found no solution.>>I have a text like:>>This is a sunny day --some_thing_here-- how do you, like it?>>Now with grep I want to remove the --some_thing_here--.>>Thus using:>>[grep search=--[a-zA-Z0-9]+--&replace=] the text above [/grep]>>Shouldn¹t this be the best way? I am really confused about this, since we>have used Grep a lot of times and it always worked.Try wildcard:[grep search=--.+--&replace=]. will match any character except line break-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Idéer AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------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:
>Ok, I have tried about every variation of code I could come up with and>found no solution.>>I have a text like:>>This is a sunny day --some_thing_here-- how do you, like it?>>Now with grep I want to remove the --some_thing_here--.>>Thus using:>>[grep search=--[a-zA-Z0-9]+--&replace=] the text above [/grep]>>Shouldn¹t this be the best way? I am really confused about this, since we>have used Grep a lot of times and it always worked.Try wildcard:[grep search=--.+--&replace=]. will match any character except line break-- ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Idéer AB SE-200 39 Malmoe Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se-------------------------------------------------------------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/
Christer Olsson
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:
Searching multiple fields (1997)
Question about searching combination of fields (2003)
WebCatalog can't find database (1997)
Trouble with formula.db + more explanation (1997)
writing db to disk (1997)
Emailer problems. (1998)
requiring form fields? (2000)
Cookies not setting on IE (2002)
SKU lookup (1997)
SERIAL NUMBER PROBLEM *AGAIN*!!! (1998)
Search in 2 or more catalogs (1997)
Help!!!! (1997)
Forms Search Questions (1997)
Snake Bites (1997)
More on the email templates (1997)
URGENT!! Fwd: Yahoo! Auto Response (2000)
WebCatb15 Mac CGI -- [purchase] (1997)
'page impression' techniques for banner ads (1999)
Extended [ConvertChars] (1997)
[WebDNA] WebDNA and MAMP/Apache (Mac) (2018)