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:

Trouble with formula.db + more explanation (1997) Web Developer Product Awards (1997) [OT] (waaaay OT) (2004) OT: Alias/Shortcut on Windows server (2003) Changes to the List (1997) [WebDNA] [session] (2018) [HTML*] (a proposition) (1997) Error -108 (1997) Sending E-mail (1997) bug in [SendMail] (1997) Max Record length restated as maybe bug (1997) unsubscribe (1997) RE: path hierarchy notation (1998) Intermitent problem using [referrer] (1997) OT: auto restart MySQL (2006) [append] vs. [appendfile] delta + question? (1997) Unknown exception in WebDNA 4.5.0 (2003) WebCatalog and WebMerchant reviewed by InfoWorld (1997) Security Hole - NetCloak Update (1998) Context and commands (1998)