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:

IE 6 weirdness ??? (2002) Need help!! on searching in two databases. (1998) Trouble with formula.db (1997) [WebDNA] Successful, working WebDNA7/CentOS install? (2013) GuestBook example (1997) [SearchString] problem with [search] context (1997) Trouble with formula.db (1997) Opinion: [input] should be called [output] ... (1997) ReturnRaw and redirect (1997) multi-part email help (2001) Repeating Fields (1997) Where is f2? (1997) [BULK] [WebDNA] [BULK] WebDNA 7 - Ready or Not ?? I'm not sure... (2011) History of beta changes? (1999) WC2.0 Memory Requirements (1997) Help! WebCat2 bug (1997) [WebDNA] Sandbox question (2009) color and size options (1997) return missing item (was:WebCat Sales) (1997) Tab Charactor (1997)