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:

Fun with Dates - finally resolved but.... (1997) Location of Browser Info.txt file (1997) Trouble with formula.db + more explanation (1997) [SHOWIF] (1997) Simple Database close connection (2001) Reversed words (1997) OT: Outsourcing & copyrights (2005) resorting found set (2005) WebCat2 - Getting to the browser's username/password data (1997) RePost: NAT and the CART (1999) RE: Formulas.db + Users.db (1997) Why does 0 divided by 1=1? (2003) Multiple Pulldowns (1997) Can you do this??? and other stuff (1997) Thanks... (2003) WebCat2 - [format thousands] (1997) Moving Files (2000) Multiple Pulldowns (1997) WebCat2b12 - nesting [tags] (1997) WC Database Format (1997)