Re: grep question - removing spaces
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 61857
interpreted = N
texte = I'm not sure about escaping in brackets. The parser may see \-\_ as from \ to (-) _.In any event you might try URLing the values of -_ to get by the parser. I think that is were the problem is. Bill-----Original Message-----From: Dale's eLists
Sent: Tue, 26 Apr 2005 11:45:20 -0500To: "WebDNA Talk" Subject: Re: grep question - removing spacesBill,----- Original Message Follows -----From: devaulw@onebox.comTo: "WebDNA Talk" Subject: Re: grep question - removing spacesDate: Tue, 26 Apr 2005 12:41:56 -0400> I don't see anything clearly wrong, but I'd try it withoutthe backslashes.I could be wrong, but I thought I needed to escape those inorder for those to work since a dash for example defines arange as in a-zA-z0-9 - without the backslash it doesn'twork (at least for the dash). It also seems the order of the \- and \_ are important aswhen I had them in a different order it didn't work at all.As currently listed, the grep will not remove embeddedspaces. 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/-------------------------------------------------------------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:
I'm not sure about escaping in brackets. The parser may see \-\_ as from \ to (-) _.In any event you might try URLing the values of -_ to get by the parser. I think that is were the problem is. Bill-----Original Message-----From: Dale's eLists Sent: Tue, 26 Apr 2005 11:45:20 -0500To: "WebDNA Talk" Subject: Re: grep question - removing spacesBill,----- Original Message Follows -----From: devaulw@onebox.comTo: "WebDNA Talk" Subject: Re: grep question - removing spacesDate: Tue, 26 Apr 2005 12:41:56 -0400> I don't see anything clearly wrong, but I'd try it withoutthe backslashes.I could be wrong, but I thought I needed to escape those inorder for those to work since a dash for example defines arange as in a-zA-z0-9 - without the backslash it doesn'twork (at least for the dash). It also seems the order of the \- and \_ are important aswhen I had them in a different order it didn't work at all.As currently listed, the grep will not remove embeddedspaces. 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/-------------------------------------------------------------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/
devaulw@onebox.com
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:
relational db question (2002)
please anybody help (2005)
WebCommerce: Folder organization ? (1997)
[WebDNA] TCPConnect Slowness (2013)
Cookie set browser session. (1998)
Draft Manual, Tutorial, and more (1997)
help needed: Non-english characters in WebCatalog (1997)
Wonderin' whats the way (1998)
Stopping bad HTML propagation ? (1997)
OrdersFolder parm missing and DBServer Access Violations (2000)
WebCat2b12 - nesting [tags] (1997)
Multiple serial numbers (1997)
form data submission get (1997)
setting taxable to true (1997)
formulas.db ?? (1998)
WC1.6 to WC2 date formatting -FIXED! (1997)
breaking & sorting (2000)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
WebCatalog can't find database (1997)
Multi or auto submit (1999)