Re: grep question - removing spaces

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61860
interpreted = N
texte = Thank you Marc and Bill, I will try your sugegstions shortly. From looking atyour suggestions, I bet they will work far better for me that what I was doing. Thanks! Dale ----- Original Message Follows ----- From: Marc Thompson To: "WebDNA Talk" Subject: Re: grep question - removing spaces Date: Tue, 26 Apr 2005 10:57:20 -0600 > I've also found that sometimes I need to grep > consecutively, not trying to get everything out with a > single statement. This grep removes space characters for > me: [Grep search= &replace=][/grep] > > Marc > > devaulw@onebox.com wrote: > > > I don't see anything clearly wrong, but I'd try it > > without the backslashes. > > Bill > > > > > > -----Original Message----- > > From: Dale's eLists > > Sent: Tue, 26 Apr 2005 10:44:35 -0500 > > To: "WebDNA Talk" > > Subject: grep > > question - removing spaces > > Hello, > > > > I have a grep statement where I am wanting to only allow > > letters, numbers, dashes and underscores. No spaces or > > other special charactors (this will eventually be used > > as a username for email addresses). > > > > Using: > > > > [text show=t]ScreenName=[grep > > > > > > > search=[^0-9a-zA-Z\-\_]&replace=][nickname][/grep][/text] > if there is an embedded space, it does not get removed. > > What have I done wrong with this? > > > > Thank you! > > > ------------------------------------------- > Marc Thompson > Software Engineer > Office of Information Technology > University of Utah > 801.585.9264 > marc.thompson@utah.edu > ------------------------------------------- ------------------------------------------------------------- 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 question - removing spaces ( Clint Davis 2005)
  2. Re: grep question - removing spaces ( devaulw@onebox.com 2005)
  3. Re: grep question - removing spaces ( devaulw@onebox.com 2005)
  4. Re: grep question - removing spaces ( "Dale's eLists" 2005)
  5. Re: grep question - removing spaces ( Marc Thompson 2005)
  6. Re: grep question - removing spaces ( Marc Thompson 2005)
  7. Re: grep question - removing spaces ( devaulw@onebox.com 2005)
  8. Re: grep question - removing spaces ( "Dale's eLists" 2005)
  9. Re: grep question - removing spaces ( devaulw@onebox.com 2005)
  10. grep question - removing spaces ( "Dale's eLists" 2005)
Thank you Marc and Bill, I will try your sugegstions shortly. From looking atyour suggestions, I bet they will work far better for me that what I was doing. Thanks! Dale ----- Original Message Follows ----- From: Marc Thompson To: "WebDNA Talk" Subject: Re: grep question - removing spaces Date: Tue, 26 Apr 2005 10:57:20 -0600 > I've also found that sometimes I need to grep > consecutively, not trying to get everything out with a > single statement. This grep removes space characters for > me: [Grep search= &replace=][/grep] > > Marc > > devaulw@onebox.com wrote: > > > I don't see anything clearly wrong, but I'd try it > > without the backslashes. > > Bill > > > > > > -----Original Message----- > > From: Dale's eLists > > Sent: Tue, 26 Apr 2005 10:44:35 -0500 > > To: "WebDNA Talk" > > Subject: grep > > question - removing spaces > > Hello, > > > > I have a grep statement where I am wanting to only allow > > letters, numbers, dashes and underscores. No spaces or > > other special charactors (this will eventually be used > > as a username for email addresses). > > > > Using: > > > > [text show=t]ScreenName=[grep > > > > > > > search=[^0-9a-zA-Z\-\_]&replace=][nickname][/grep][/text] > if there is an embedded space, it does not get removed. > > What have I done wrong with this? > > > > Thank you! > > > ------------------------------------------- > Marc Thompson > Software Engineer > Office of Information Technology > University of Utah > 801.585.9264 > marc.thompson@utah.edu > ------------------------------------------- ------------------------------------------------------------- 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/ "Dale's eLists"

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:

WebCat2: Master Counter snippet (1997) This list needs a digest: rant, rave... (1997) Keep away (1997) Using Plug-In while running 1.6.1 (1997) tricky embedded[showifs/hideifs] (w/ code.. long) (2000) Frames and WebCat (1997) FW: Shipping calculations (1997) One more time (1997) emailer and bad addresses (1997) Nav4 not specifying cart (1997) Fuzzy on [url] context (1998) Still trying to email... (1998) tricky embedded[showifs/hideifs] (w/ code.. long) (2000) ShowNext Command (1997) Handy Browser Counter Tip (1997) Kaaaaahhhhhhhnnnnnnn! (1997) Rendering out a page (1997) [WebDNA] New Licenses (2009) My server admin needs help ... (2004) Ooops..Broswer Info.txt (was Web*SSL and WebCatalog) (1997)