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:

Plugin or CGI or both (1997) A quickie question (1997) MacOS9 plugin 4.0.2b5 template security error (2000) OT: Outsourcing & copyrights (2005) WebCat2b15MacPlugin - [protect] (1997) Speed/performance issues using .hdr (1997) Auth.net and SIM (2003) CASTEGORIES IN DIFFERENT FRAMES (1997) Re[2]: 2nd WebCatalog2 Feature Request (1996) CASTEGORIES IN DIFFERENT FRAMES (1997) Still online from NY (2003) WebCat2 Append problem (B14Macacgi) (1997) Country & Ship-to address & other fields ? (1997) SmithMicro announcement at Macworld ?? (2004) HTTP header line is too long? (1997) Bad Cookie / Internet Option / Internet Explorer (2004) can WC render sites out? (1997) PCS Customer submissions ? (1997) Help with update to 2.11 (1998) [WebDNA] WebDNA receiving numerous signal SIGSEGV then crashing (2016)