Re: [WebDNA] keep variable only letters and numbers

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 112367
interpreted = N
texte = --Apple-Mail=_804D0A6F-D98C-4555-998A-41A7B2344A99 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii [SHOWIF [grep = search=3D([^a-zA-Z0-9])&replace=3D#][VARIABLE1][/grep]^#][redirect = index.tpl?message=3DYou must use only letters and numbers][/SHOWIF] Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 13 Jul 2015, at 06:02, Stephen Reiss wrote: >=20 > I am sure someone will have a better answer, and I am on my way out = the door, but I would think the answer lies in either ASCII or Grep. >=20 >=20 >=20 > On Jul 12, 2015, at 4:31 PM, Steve Braun > wrote: >=20 >> Hi All, >> Happy Summer! >>=20 >> Does anyone have a quick way to search a variable, for characters = that are non-letter, non-numbers without having to use 256 showif tags? >>=20 >> Like this... >>=20 >> [text]variable1=3DXe45bTc[/text] >> [listchars chars=3D[variable1]] >> [showif [char]=3D!][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D@][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D#][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D$][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D%][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D^][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D&][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> etc >> etc >> [/listchars] >>=20 >>=20 >> Thanksomuch! >>=20 >> Stephen F Braun >> sbraun1@twcny.rr.com >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us = Bug Reporting: = support@webdna.us = ------------------------------------------------= --------- This message is sent to you because you are subscribed to the = mailing list . To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_804D0A6F-D98C-4555-998A-41A7B2344A99 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

[SHOWIF [grep = search=3D([^a-zA-Z0-9])&replace=3D#][VARIABLE1][/grep]^#][redirect = index.tpl?message=3DYou must use only letters and numbers][/SHOWIF]




Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 13 Jul 2015, at 06:02, Stephen Reiss <wineguy@mac.com> = wrote:

I am sure = someone will have a better answer, and I am on my way out the door, but = I would think the answer lies in either ASCII or Grep.



On Jul = 12, 2015, at 4:31 PM, Steve Braun <sbraun1@twcny.rr.com> wrote:

Hi= All,
Happy Summer!

Does anyone have a quick way to search a variable, for = characters that are non-letter, non-numbers without having to use 256 = showif tags?

Like = this...

[text]variable1=3DXe45bTc[/text]
[listchars= chars=3D[variable1]]
     [showif =[char]=3D!][redirect index.tpl?message=3DYou must use only letters and =numbers][/showif]
[showif [char]=3D@][redirect = index.tpl?message=3DYou must use only letters and numbers][/showif]
[showif [char]=3D#][redirect index.tpl?message=3DYou = must use only letters and numbers][/showif]
[showif = [char]=3D$][redirect index.tpl?message=3DYou must use only letters and = numbers][/showif]
[showif [char]=3D%][redirect = index.tpl?message=3DYou must use only letters and numbers][/showif]
[showif [char]=3D^][redirect index.tpl?message=3DYou = must use only letters and numbers][/showif]
[showif = [char]=3D&][redirect index.tpl?message=3DYou must use only letters = and numbers][/showif]
etc
etc
[/listchars]


Thanksomuch!

Stephen F Braun
sbraun1@twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_804D0A6F-D98C-4555-998A-41A7B2344A99-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] keep variable only letters and numbers (Stuart Tremain 2015)
  2. Re: [WebDNA] keep variable only letters and numbers (Stephen Reiss 2015)
  3. [WebDNA] keep variable only letters and numbers (Steve Braun 2015)
--Apple-Mail=_804D0A6F-D98C-4555-998A-41A7B2344A99 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii [SHOWIF [grep = search=3D([^a-zA-Z0-9])&replace=3D#][VARIABLE1][/grep]^#][redirect = index.tpl?message=3DYou must use only letters and numbers][/SHOWIF] Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > On 13 Jul 2015, at 06:02, Stephen Reiss wrote: >=20 > I am sure someone will have a better answer, and I am on my way out = the door, but I would think the answer lies in either ASCII or Grep. >=20 >=20 >=20 > On Jul 12, 2015, at 4:31 PM, Steve Braun > wrote: >=20 >> Hi All, >> Happy Summer! >>=20 >> Does anyone have a quick way to search a variable, for characters = that are non-letter, non-numbers without having to use 256 showif tags? >>=20 >> Like this... >>=20 >> [text]variable1=3DXe45bTc[/text] >> [listchars chars=3D[variable1]] >> [showif [char]=3D!][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D@][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D#][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D$][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D%][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D^][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> [showif [char]=3D&][redirect index.tpl?message=3DYou must use = only letters and numbers][/showif] >> etc >> etc >> [/listchars] >>=20 >>=20 >> Thanksomuch! >>=20 >> Stephen F Braun >> sbraun1@twcny.rr.com >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list . = To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us = Bug Reporting: = support@webdna.us = ------------------------------------------------= --------- This message is sent to you because you are subscribed to the = mailing list . To unsubscribe, E-mail to: archives: = http://mail.webdna.us/list/talk@webdna.us Bug Reporting: = support@webdna.us --Apple-Mail=_804D0A6F-D98C-4555-998A-41A7B2344A99 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii

[SHOWIF [grep = search=3D([^a-zA-Z0-9])&replace=3D#][VARIABLE1][/grep]^#][redirect = index.tpl?message=3DYou must use only letters and numbers][/SHOWIF]




Kind regards

Stuart Tremain
IDFK Web Developments
AUSTRALIA





On 13 Jul 2015, at 06:02, Stephen Reiss <wineguy@mac.com> = wrote:

I am sure = someone will have a better answer, and I am on my way out the door, but = I would think the answer lies in either ASCII or Grep.



On Jul = 12, 2015, at 4:31 PM, Steve Braun <sbraun1@twcny.rr.com> wrote:

Hi= All,
Happy Summer!

Does anyone have a quick way to search a variable, for = characters that are non-letter, non-numbers without having to use 256 = showif tags?

Like = this...

[text]variable1=3DXe45bTc[/text]
[listchars= chars=3D[variable1]]
     [showif =[char]=3D!][redirect index.tpl?message=3DYou must use only letters and =numbers][/showif]
[showif [char]=3D@][redirect = index.tpl?message=3DYou must use only letters and numbers][/showif]
[showif [char]=3D#][redirect index.tpl?message=3DYou = must use only letters and numbers][/showif]
[showif = [char]=3D$][redirect index.tpl?message=3DYou must use only letters and = numbers][/showif]
[showif [char]=3D%][redirect = index.tpl?message=3DYou must use only letters and numbers][/showif]
[showif [char]=3D^][redirect index.tpl?message=3DYou = must use only letters and numbers][/showif]
[showif = [char]=3D&][redirect index.tpl?message=3DYou must use only letters = and numbers][/showif]
etc
etc
[/listchars]


Thanksomuch!

Stephen F Braun
sbraun1@twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us

= --Apple-Mail=_804D0A6F-D98C-4555-998A-41A7B2344A99-- Stuart Tremain

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:

Date Comparison (1998) No Wanna Duppys (1998) Grepping a csv (2003) Can't get appendfile to work (1997) Sendmail truncation in Eudora Clients (1998) MacAuthorize order data fields WAS:How To question... (1997) [REPLACE] inside [FOUNDITEMS] (1998) Multiple Users.db Possible? (1997) Can I invoke an ssi plugin from within a webcat page (1997) Duplicate Items in the Cart (1998) customers getting same cart (2004) WC2f3 (1997) Date problems-more (1997) [Fwd: Rotating Banners ... (was LinkExchange)] (1997) Speed Admin? (Was FlushDatabases) (1997) bug in [SendMail] (1997) Wireless WebDNA available today! (2000) Major NT problem Interruption of service (1998) WebCat2 - [SendNews] (1997) Bad creator codes which cause access denied errormessage (1997)