Re: [WebDNA] can webdna's [grep] find and replace ONLY the literal "+" char?

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 109010
interpreted = N
texte = --Apple-Mail=_82DC8187-F230-473F-9F0F-D4CD7ACDA7D8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii [Table name=3Dclean7&fields=3Dfrom,to] + -and- [/TABLE] Sorry CONVERTWORDS [convertwords table=3Dclean7][VALUETOCLEAN][/convertwords]=20 On 30/04/2012, at 11:49 AM, Govinda wrote: >>> can anyone here write/show me a [grep] that finds a literal "+" = character .. and replace it with some flag string, like = "~hackinPlusChar~". >>> v. 6.2 just keeps on finding every space char as well as "+", (or = worse) no matter how i (so far) fiddle with the [grep] search param. >>> (test with a string that contains many words separated by spaces.) >>>=20 >>> On my wish list for webdna is that [grep] behaves as do other = commonly-in-use grep engines. >>>=20 >>> Thanks >>> -Govinda >=20 >=20 >=20 >> Govinda >>=20 >> I gave up with that and resorted to CONVERTCHARS >=20 >=20 > Hi Stuart >=20 > Thanks for replying.. > I was just trying that as you were writing your post.. but it is the = oddest thing.. that even this (*instead of* the grep) is swapping out = all space characters as well as plus characters: >=20 >=20 > [table name=3DplusCharConverter&fields=3Dfrom,to][/table] > [Append = table=3DplusCharConverter]from=3D+&to=3D~hackinPlusChar~[/Append] >=20 > [ConvertChars table=3DplusCharConverter] > [testString] > [/ConvertChars] >=20 > Can you show me code that is working for you to swap out ONLY literal = "+" chars? >=20 >=20 > --------------------------------------------------------- > 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=_82DC8187-F230-473F-9F0F-D4CD7ACDA7D8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
[Table name=3Dclean7&fields=3Dfrom,to]
 + = -and-
[/TABLE]

Sorry CONVERTWORDS

[convertwords = table=3Dclean7][VALUETOCLEAN][/convertwords] 





On 30/04/2012, at 11:49 AM, Govinda = wrote:

can= anyone here write/show me a [grep] that finds a literal "+" character = .. and replace it with some flag string, like = "~hackinPlusChar~".
v. 6.2 just keeps on finding = every space char as well as "+", (or worse) no matter how i (so far) = fiddle with the [grep] search = param.
(test with a string that contains many words separated by = spaces.)

On my wish list for webdna is = that [grep] behaves as do other commonly-in-use grep = engines.

Thanks
-Govinda



Govinda

I gave up with = that and resorted to CONVERTCHARS


Hi = Stuart

Thanks for replying..
I was just trying that as you = were writing your post.. but it is the oddest thing..  that even = this (*instead of* the grep)  is swapping out all space characters = as well as plus characters:


[table = name=3DplusCharConverter&fields=3Dfrom,to][/table]
[Append = table=3DplusCharConverter]from=3D+&to=3D~hackinPlusChar~[/Append]
<= br>= [ConvertChars table=3DplusCharConverter]
= [testString]
[/ConvertChars]

Can you = show me code that is working for you to swap out ONLY literal "+" = chars?


--------------------------------------------------------= -
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>
archi= ves: http://mail.webdna.us/l= ist/talk@webdna.us
Bug Reporting: support@webdna.us

= --Apple-Mail=_82DC8187-F230-473F-9F0F-D4CD7ACDA7D8-- Associated Messages, from the most recent to the oldest:

    
--Apple-Mail=_82DC8187-F230-473F-9F0F-D4CD7ACDA7D8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii [Table name=3Dclean7&fields=3Dfrom,to] + -and- [/TABLE] Sorry CONVERTWORDS [convertwords table=3Dclean7][VALUETOCLEAN][/convertwords]=20 On 30/04/2012, at 11:49 AM, Govinda wrote: >>> can anyone here write/show me a [grep] that finds a literal "+" = character .. and replace it with some flag string, like = "~hackinPlusChar~". >>> v. 6.2 just keeps on finding every space char as well as "+", (or = worse) no matter how i (so far) fiddle with the [grep] search param. >>> (test with a string that contains many words separated by spaces.) >>>=20 >>> On my wish list for webdna is that [grep] behaves as do other = commonly-in-use grep engines. >>>=20 >>> Thanks >>> -Govinda >=20 >=20 >=20 >> Govinda >>=20 >> I gave up with that and resorted to CONVERTCHARS >=20 >=20 > Hi Stuart >=20 > Thanks for replying.. > I was just trying that as you were writing your post.. but it is the = oddest thing.. that even this (*instead of* the grep) is swapping out = all space characters as well as plus characters: >=20 >=20 > [table name=3DplusCharConverter&fields=3Dfrom,to][/table] > [Append = table=3DplusCharConverter]from=3D+&to=3D~hackinPlusChar~[/Append] >=20 > [ConvertChars table=3DplusCharConverter] > [testString] > [/ConvertChars] >=20 > Can you show me code that is working for you to swap out ONLY literal = "+" chars? >=20 >=20 > --------------------------------------------------------- > 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=_82DC8187-F230-473F-9F0F-D4CD7ACDA7D8 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
[Table name=3Dclean7&fields=3Dfrom,to]
 + = -and-
[/TABLE]

Sorry CONVERTWORDS

[convertwords = table=3Dclean7][VALUETOCLEAN][/convertwords] 





On 30/04/2012, at 11:49 AM, Govinda = wrote:

can= anyone here write/show me a [grep] that finds a literal "+" character = .. and replace it with some flag string, like = "~hackinPlusChar~".
v. 6.2 just keeps on finding = every space char as well as "+", (or worse) no matter how i (so far) = fiddle with the [grep] search = param.
(test with a string that contains many words separated by = spaces.)

On my wish list for webdna is = that [grep] behaves as do other commonly-in-use grep = engines.

Thanks
-Govinda



Govinda

I gave up with = that and resorted to CONVERTCHARS


Hi = Stuart

Thanks for replying..
I was just trying that as you = were writing your post.. but it is the oddest thing..  that even = this (*instead of* the grep)  is swapping out all space characters = as well as plus characters:


[table = name=3DplusCharConverter&fields=3Dfrom,to][/table]
[Append = table=3DplusCharConverter]from=3D+&to=3D~hackinPlusChar~[/Append]
<= br>= [ConvertChars table=3DplusCharConverter]
= [testString]
[/ConvertChars]

Can you = show me code that is working for you to swap out ONLY literal "+" = chars?


--------------------------------------------------------= -
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>
archi= ves: http://mail.webdna.us/l= ist/talk@webdna.us
Bug Reporting: support@webdna.us

= --Apple-Mail=_82DC8187-F230-473F-9F0F-D4CD7ACDA7D8-- 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:

email program problem (1998) [replaceChars] would be nice ... (1997) webCatalog and Stocks (1998) Suffix Mapping (1997) taxTotal (1997) greater than or equal to (1997) [ShowIf] and empty fields (1997) formvariables not passing (2000) Some Advise needed (1997) sql context issues (2001) Open Databases on Restart (1999) RE: Netscape v. IE (1997) OT (sort of) WAP/WML and 'form' posts (2003) Re2: Calculating multiple shipping... (1997) [WebDNA] unix timestamp in WebDNA (2009) WebMerchant and Mac Auth Hub Help Please (1999) Tab Charactor (1997) [WebDNA] Question on table search (2011) URGENT! ACGI Stopped!!!! (1997) Fun with Dates - any progress? (1997)