Grep two things at once?

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63065
interpreted = N
texte = How do I search for 2 characters (only) and replace them with one? Example: I want to search for any dashes and a spaces in some text and replace them with underscores. Separately, I'd do: [grep search=-&replace=_]the text[/grep] and [grep search= &replace=_]the text[/grep] Looked through the archives, but I'm kind of stumbling out of the gate on this one... Thanks in advance. -Dan ------------------------------------------------------------- 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)
How do I search for 2 characters (only) and replace them with one? Example: I want to search for any dashes and a spaces in some text and replace them with underscores. Separately, I'd do: [grep search=-&replace=_]the text[/grep] and [grep search= &replace=_]the text[/grep] Looked through the archives, but I'm kind of stumbling out of the gate on this one... Thanks in advance. -Dan ------------------------------------------------------------- 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/ "Dan Strong"

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:

Proper file locations (1997) WebCatalog NT beta 18 problem (1997) php vs WebCatalog (2000) Re:listfiles-looking for slick solution (1997) Need help!! on searching in two databases. (1998) authorizenet and netscape (2002) Locking up with WebCatalog... (1997) Exists? (1997) Fun with dates (1997) WebCatalog can't find database (1997) Bug (feature) in v6 listfiles shows hidden files ... (2004) [WebDNA] someone is needing a developer... (2010) ftp access on Macos X (2000) problems with WebCat-Plugin (1997) ShowNext (1997) Re1000001: Setting up shop (1997) Firewalls - What's Good? (1999) authenticating a second user (1997) updating a series of records via a text file? (1999) Tax and ShipCost Problem (1997)