Re: Grep two things at once?

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63067
interpreted = N
texte = Dan Strong wrote: > Example: I want to search for any dashes and a spaces in some text and > replace them with underscores. Get the O'Reilly book "Regular Expressions" if you want to do anything significantly useful with [grep]. This will do what you want: [grep search=[- ]&replace=_]the text[/grep] The [- ] signifies a set of characters. HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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:

    
  1. Re: Grep two things at once? ( devaulw@onebox.com 2005)
  2. Re: Grep two things at once? ( "Dan Strong" 2005)
  3. Re: Grep two things at once? ( John Peacock 2005)
  4. Grep two things at once? ( "Dan Strong" 2005)
Dan Strong wrote: > Example: I want to search for any dashes and a spaces in some text and > replace them with underscores. Get the O'Reilly book "Regular Expressions" if you want to do anything significantly useful with [grep]. This will do what you want: [grep search=[- ]&replace=_]the text[/grep] The [- ] signifies a set of characters. HTH John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 ------------------------------------------------------------- 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:

Further tests with the infamous shipCost (1997) [math] show=F exists? (1997) Math problems (1998) Serving images from databases (1998) Help needed! (1998) Am I being really stupid? (2003) Email Formatting and Encryption (1998) raw=T is broken in [include] (1997) please unsubscribe me! (2000) Emails are Stuck (2003) Db design question (relational vs. flat?) (1998) OT: Need some DVD advice (2006) Trouble with formula.db (1997) Emailer choke (1997) WC2.0 Memory Requirements (1997) Running WebCat from a CD-ROM (1997) blank page from template (1997) EMERGENCY: WebCatalog stopped processing .HTML (IIS) (2003) Kudos (1998) X etc.... (1999)