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-DFD3E30E1D26Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiIn 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-DFD3E30E1D26Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiIn 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
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
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
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
------------------------------
---------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us--Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26--.
Associated Messages, from the most recent to the oldest:
1355--Apple-Mail=_EE44F9A3-2BD7-410D-87E0-DFD3E30E1D26Content-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=us-asciiIn 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-DFD3E30E1D26Content-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=us-asciiIn 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
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
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
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
------------------------------
---------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list
talk@webdna.usTo unsubscribe, E-mail to:
talk-leave@webdna.usarchives:
http://www.webdna.us/page.dna?numero=3D55Bug Reporting:
support@webdna.us
=---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug 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:
more on quicktime test stuff (1997)
no [search] with NT (1997)
WC2.0 Memory Requirements (1997)
Recursion & WebDNA (1999)
[founditems] & radiobuttons - CONCLUSION (2002)
It just Does't add up!!! (1997)
OT : Site speed feedback (2002)
[WebDNA] RFP: WebDNA or PHP? (2010)
[WebDNA] Topic... (2004)
posts (1998)
authorizenet and netscape (2002)
SSL and reg web* (1997)
Custom WebCat Prefs ... (1997)
R.I.P. Netscape (2003)
Word search (1997)
2.1 Stuff (1998)
Nested tags count question (1997)
Version f1 status (1997)
Secure server question (1997)
Help! WebCat2 bug (1997)