What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: grep question - removing spaces

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 61856
interpreted = N
texte = Bill, ----- Original Message Follows ----- From: devaulw@onebox.com To: "WebDNA Talk" Subject: Re: grep question - removing spaces Date: Tue, 26 Apr 2005 12:41:56 -0400 > I don't see anything clearly wrong, but I'd try it without the backslashes. I could be wrong, but I thought I needed to escape those in order for those to work since a dash for example defines a range as in a-zA-z0-9 - without the backslash it doesn't work (at least for the dash). It also seems the order of the \- and \_ are important as when I had them in a different order it didn't work at all. As currently listed, the grep will not remove embedded spaces. I'm stumped! > 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! > > ---------------------------------------------------------- > --- 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/ > > > > ---------------------------------------------------------- > --- 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/ ------------------------------------------------------------- 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)
Bill, ----- Original Message Follows ----- From: devaulw@onebox.com To: "WebDNA Talk" Subject: Re: grep question - removing spaces Date: Tue, 26 Apr 2005 12:41:56 -0400 > I don't see anything clearly wrong, but I'd try it without the backslashes. I could be wrong, but I thought I needed to escape those in order for those to work since a dash for example defines a range as in a-zA-z0-9 - without the backslash it doesn't work (at least for the dash). It also seems the order of the \- and \_ are important as when I had them in a different order it didn't work at all. As currently listed, the grep will not remove embedded spaces. I'm stumped! > 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! > > ---------------------------------------------------------- > --- 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/ > > > > ---------------------------------------------------------- > --- 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/ ------------------------------------------------------------- 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:

Still can't upgrade users.db to 2.1.1 (1998) Speed questions (1998) OT-Load balance (2004) WebCat2 Append problem (B14Macacgi) (1997) Price recalc based on quantity (1997) Hiding HTML and breaking the page (1997) Building Calendars (1997) [math] storage of variables (1997) Major Security Hole IIS NT (1998) QuitFeedback & DBNotOpened errors (1997) WebCat2 beta 11 - new prefs ... (1997) RequiredFields template (1997) [ModDate] & [ModTime] ? (1997) Line items in table cells (1997) New command suggestion (1997) The [shownext] limitations (2002) cart info (1998) Reversed words (1997) Interpret twice? (1997) Entry point? Security w/ dbase helper? (1997)