Re: [WebDNA] filter out the exclaimation point

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113760
interpreted = N
texte = 1355 --Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In the code you provided, you are missing an Ampersand between the = Exclamation Point and the REPLACE parameter. The URL context is not strictly needed in this case, but is often an = important tool when passing parameter values that may contain special = characters (especially ampersands and equals signs, since they are = delimiters used by the WebDNA parser). Backslashes are used by the Regular Expression (RegEx) standard on which = GREP is built to escape characters that the RegEx parser would otherwise = treat with special meaning. There are many resources on the web to learn = about RegEx (such as the one Start referenced), so it is not necessary = for WebDNA Corp to create their own documentation for this. It would. = however, be handy if they included links to external documentation. - Brian > On Nov 30, 2017, at 4:04 PM, Steve @ Tailored Web Solutions = wrote: >=20 > Thanks for the help. >=20 > There is nothing in the documentation about using the \ as an escape = or a [url] tag. > How was I supposed to know? >=20 >=20 > I had: > [text]myVar=3DHello, Bob! You Rock![/text] > [grep search=3D!replace=3Dq&ignorecase=3DT][mayvar][/grep] > Result: Hello, Bob! You Rock! >=20 > Thanks again, > sfb >=20 >=20 >=20 >=20 > Stephen Braun > Tailored Web Solutions > steve@tailoredwebsolutions.net > www.tailoredwebsolutions.com > 315.343.1744 >=20 > On Thu, Nov 30, 2017 at 6:58 PM, Brian Fries > wrote: > Grep should work fine for this purpose: >=20 > [text]myVar=3DHello, Bob! You Rock![/text] > [grep search=3D[url]![/url]&replace=3D][myVar][/grep] >=20 > Results: > Hello, Bob You Rock >=20 >=20 > In what way is it not working for you? >=20 > - Brian >=20 >> On Nov 30, 2017, at 3:54 PM, Stuart Tremain > wrote: >>=20 >> You could use [CONVERTCHARS]Grep this out ![/CONVERTCHARS] you will = need to include ! in StandardConversions.db >>=20 >> Or [CONVERTCHARS db=3D^CustomConversions.db]Grep this out = ![/CONVERTCHARS] and then create CustomConversions.db >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> Kind regards >>=20 >> Stuart Tremain >> Pharoah Lane Software >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>> On 1 Dec 2017, at 10:40, Stephen Braun > wrote: >>>=20 >>> Hi all, >>>=20 >>> I need to filter out the exclamation point character out of a = variable. >>> I was using grep, but it dosen't work. >>>=20 >>> any suggestions? >>>=20 >>> Thanks a bunch, >>> sfb >>>=20 >>>=20 >>>=20 >>>=20 >>> Stephen F Braun >>> sbraun1@twcny.rr.com >>> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: = support@webdna.us >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: = support@webdna.us > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: = support@webdna.us > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us --Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii In the code you provided, you are missing an Ampersand = between the Exclamation Point and the REPLACE parameter.

The URL = context is not strictly needed in this case, but is often an important = tool when passing parameter values that may contain special characters = (especially ampersands and equals signs, since they are delimiters used = by the WebDNA parser).

Backslashes are used by the Regular Expression (RegEx) = standard on which GREP is built to escape characters that the RegEx = parser would otherwise treat with special meaning. There are many = resources on the web to learn about RegEx (such as the one Start = referenced), so it is not necessary for WebDNA Corp to create their own = documentation for this. It would. however, be handy if they included = links to external documentation.

- Brian


On = Nov 30, 2017, at 4:04 PM, Steve @ Tailored Web Solutions <steve@tailoredwebsolutions.net> wrote:

Thanks for the help.

There is nothing in the documentation about using the \ as an = escape  or a [url] tag.
How was I supposed to = know?


 I had:
[text]myVar=3DHello, Bob! You = Rock![/text]
[grep = search=3D!replace=3Dq&ignorecase=3DT][mayvar][/grep]
Result: Hello,= Bob! You Rock!

Thanks = again,
sfb




Stephen = Braun
Tailored Web Solutions
steve@tailoredwebsolutions.net
www.tailoredwebsolutions.com
315.343.1744

On Thu, Nov 30, 2017 at 6:58 = PM, Brian Fries <iphonzie@gmail.com> wrote:
Grep should work fine for this = purpose:

[text]myVar=3DHello, Bob! You Rock![/text]
[grep search=3D[url]![/url]&replace=3D][myVar][/grep]

Results:
Hello, Bob You Rock


In what way is it not working for you?

- Brian

On Nov = 30, 2017, at 3:54 PM, Stuart Tremain <webdna@idfk.com.au> wrote:

You= could use [CONVERTCHARS]Grep this out ![/CONVERTCHARS] you will = need to include ! in StandardConversions.db

Or [CONVERTCHARS = db=3D^CustomConversions.db]Grep this out ![/CONVERTCHARS] and then = create CustomConversions.db








Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






On 1 Dec 2017, at 10:40, Stephen Braun <sbraun1@twcny.rr.com> wrote:

Hi all,

I need to filter out the exclamation = point character out of a variable.
I was using = grep, but it dosen't work.

any suggestions?

Thanks a bunch,
sfb




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

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  2. Re: [WebDNA] filter out the exclaimation point ("Steve @ Tailored Web Solutions" 2017)
  3. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  4. Re: [WebDNA] filter out the exclaimation point (Kenneth Grome 2017)
  5. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  6. [WebDNA] filter out the exclaimation point (christophe.billiottet@webdna.us 2017)
  7. Re: [WebDNA] filter out the exclaimation point (Stuart Tremain 2017)
  8. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  9. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  10. Re: [WebDNA] filter out the exclaimation point (Stuart Tremain 2017)
  11. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  12. Re: [WebDNA] filter out the exclaimation point (Kenneth Grome 2017)
  13. Re: [WebDNA] filter out the exclaimation point (Brian Harrington 2017)
  14. Re: [WebDNA] filter out the exclaimation point (Brian Fries 2017)
  15. Re: [WebDNA] filter out the exclaimation point (Stuart Tremain 2017)
  16. Re: [WebDNA] filter out the exclaimation point ("Steve @ Tailored Web Solutions" 2017)
  17. Re: [WebDNA] filter out the exclaimation point (Brian Fries 2017)
  18. Re: [WebDNA] filter out the exclaimation point (Stuart Tremain 2017)
  19. Re: [WebDNA] filter out the exclaimation point (Stuart Tremain 2017)
  20. [WebDNA] filter out the exclaimation point (Stephen Braun 2017)
1355 --Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In the code you provided, you are missing an Ampersand between the = Exclamation Point and the REPLACE parameter. The URL context is not strictly needed in this case, but is often an = important tool when passing parameter values that may contain special = characters (especially ampersands and equals signs, since they are = delimiters used by the WebDNA parser). Backslashes are used by the Regular Expression (RegEx) standard on which = GREP is built to escape characters that the RegEx parser would otherwise = treat with special meaning. There are many resources on the web to learn = about RegEx (such as the one Start referenced), so it is not necessary = for WebDNA Corp to create their own documentation for this. It would. = however, be handy if they included links to external documentation. - Brian > On Nov 30, 2017, at 4:04 PM, Steve @ Tailored Web Solutions = wrote: >=20 > Thanks for the help. >=20 > There is nothing in the documentation about using the \ as an escape = or a [url] tag. > How was I supposed to know? >=20 >=20 > I had: > [text]myVar=3DHello, Bob! You Rock![/text] > [grep search=3D!replace=3Dq&ignorecase=3DT][mayvar][/grep] > Result: Hello, Bob! You Rock! >=20 > Thanks again, > sfb >=20 >=20 >=20 >=20 > Stephen Braun > Tailored Web Solutions > steve@tailoredwebsolutions.net > www.tailoredwebsolutions.com > 315.343.1744 >=20 > On Thu, Nov 30, 2017 at 6:58 PM, Brian Fries > wrote: > Grep should work fine for this purpose: >=20 > [text]myVar=3DHello, Bob! You Rock![/text] > [grep search=3D[url]![/url]&replace=3D][myVar][/grep] >=20 > Results: > Hello, Bob You Rock >=20 >=20 > In what way is it not working for you? >=20 > - Brian >=20 >> On Nov 30, 2017, at 3:54 PM, Stuart Tremain > wrote: >>=20 >> You could use [convertchars]Grep this out ![/CONVERTCHARS] you will = need to include ! in StandardConversions.db >>=20 >> Or [CONVERTCHARS db=3D^CustomConversions.db]Grep this out = ![/CONVERTCHARS] and then create CustomConversions.db >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> Kind regards >>=20 >> Stuart Tremain >> Pharoah Lane Software >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>> On 1 Dec 2017, at 10:40, Stephen Braun > wrote: >>>=20 >>> Hi all, >>>=20 >>> I need to filter out the exclamation point character out of a = variable. >>> I was using grep, but it dosen't work. >>>=20 >>> any suggestions? >>>=20 >>> Thanks a bunch, >>> sfb >>>=20 >>>=20 >>>=20 >>>=20 >>> Stephen F Braun >>> sbraun1@twcny.rr.com >>> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: = support@webdna.us >> --------------------------------------------------------- This = message is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: = support@webdna.us > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: = talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 = Bug Reporting: = support@webdna.us > --------------------------------------------------------- This message = is sent to you because you are subscribed to the mailing list = talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: = http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: = support@webdna.us --Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii In the code you provided, you are missing an Ampersand = between the Exclamation Point and the REPLACE parameter.

The URL = context is not strictly needed in this case, but is often an important = tool when passing parameter values that may contain special characters = (especially ampersands and equals signs, since they are delimiters used = by the WebDNA parser).

Backslashes are used by the Regular Expression (RegEx) = standard on which GREP is built to escape characters that the RegEx = parser would otherwise treat with special meaning. There are many = resources on the web to learn about RegEx (such as the one Start = referenced), so it is not necessary for WebDNA Corp to create their own = documentation for this. It would. however, be handy if they included = links to external documentation.

- Brian


On = Nov 30, 2017, at 4:04 PM, Steve @ Tailored Web Solutions <steve@tailoredwebsolutions.net> wrote:

Thanks for the help.

There is nothing in the documentation about using the \ as an = escape  or a [url] tag.
How was I supposed to = know?


 I had:
[text]myVar=3DHello, Bob! You = Rock![/text]
[grep = search=3D!replace=3Dq&ignorecase=3DT][mayvar][/grep]
Result: Hello,= Bob! You Rock!

Thanks = again,
sfb




Stephen = Braun
Tailored Web Solutions
steve@tailoredwebsolutions.net
www.tailoredwebsolutions.com
315.343.1744

On Thu, Nov 30, 2017 at 6:58 = PM, Brian Fries <iphonzie@gmail.com> wrote:
Grep should work fine for this = purpose:

[text]myVar=3DHello, Bob! You Rock![/text]
[grep search=3D[url]![/url]&replace=3D][myVar][/grep]

Results:
Hello, Bob You Rock


In what way is it not working for you?

- Brian

On Nov = 30, 2017, at 3:54 PM, Stuart Tremain <webdna@idfk.com.au> wrote:

You= could use [convertchars]Grep this out ![/CONVERTCHARS] you will = need to include ! in StandardConversions.db

Or [CONVERTCHARS = db=3D^CustomConversions.db]Grep this out ![/CONVERTCHARS] and then = create CustomConversions.db








Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






On 1 Dec 2017, at 10:40, Stephen Braun <sbraun1@twcny.rr.com> wrote:

Hi all,

I need to filter out the exclamation = point character out of a variable.
I was using = grep, but it dosen't work.

any suggestions?

Thanks a bunch,
sfb




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

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us
= --------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list talk@webdna.us To unsubscribe, E-mail to: talk-leave@webdna.us archives: http://www.webdna.us/page.dna?numero=3D55 Bug Reporting: support@webdna.us --Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26-- . Brian Fries

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:

Why don't Typhoon & Firesite work together? (and webcat) (1998) Configuring E-mail (1997) numlineitems possible cache problem. (2000) autosensing lanague selection (1997) Adding Header Values with [SetHeader] (1998) Need something like [listchars] ... (2000) Generating unique SKU from [cart] - FIXED! (1997) WebCat2b12 CGI Mac - [shownext] problem (1997) Emailer choke (1997) I need to get a [grep] (2003) WebCat2 - storing unformatted date data? (1997) WebDNA Book? (2003) WebCat2: Items xx to xx shown, etc. (1997) all records returned. (1997) setting HTTP response header (1998) Tab Charactor (1997) WC Bulletin Board Issue (2003) Email Formatting and Encryption (1998) includes and cart numbers (1997) TIP: using [middle] to peel off page.html from [referrer] (2004)