grep question - removing spaces

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61854
interpreted = N
texte = 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! ------------------------------------------------------------- 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)
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! ------------------------------------------------------------- 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:

Anyone awake? Just testing... (2005) WebCat2final1 crashes (1997) [WebDNA] [BULK] WebDNA 7 - Bug Reporting (2011) Spawn doesn't work as advertised ... (2000) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Attention all list readers (1997) Busy WebCatalog (2000) Clear/Reset form with JavaScript (2001) memory in high traffic servers (2004) Question: Searching/Appending (1998) I give up!! (1997) The IBC root beer has arrived! (1997) Plugin or CGI or both (1997) pop up menu's (1998) Formvariable won't update (1999) [OT] Kerio Mailserver (2003) No luck with taxes (1997) Multiple Passwords (1997) If Empty ? (1997) RequiredFields template (1997)