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:

Running _every_ page through WebCat ? (1997) PCS Emailer's role ? (1997) Finding max value for a field (1997) Forumulas.db & Variables (2002) Selected Item in Pop-down (2003) Search for dates greater than [date] (1997) form data submission gets truncated (1997) Searching an Email database (1997) ShowNext (1997) Newbie problem blah blah blah (1997) The Guru and the Cyclops (1998) WC2.0 Memory Requirements (1997) PSC recommends what date format yr 2000??? (1997) State DB & TIme Zones (2003) emailer (1997) WebCat2b15MacPlugin - showing [math] (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) restarting service remotely on NT (1997) Command=Showcart? (2000) possible bug in unix version? (2000)