Re: [WebDNA] [middle]

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111939
interpreted = N
texte = Interesting ideas from Ken about making [middle] a more powerful codon. = Let=92s work on this as I am very interested by new tools that can = handle text better. About GREP, the current implementation is old and basic. There is no = full documentation as far as I know. Unfortunately, our GREP syntax = would collide with the full GREP implementation, making it backward = incompatible. All those who implemented [grep] in their design would see = it behave a different way. If we can include the full version of grep in = WebDNA (I have to check if it is under GNU General Public License), we = could name it [grep2] Take the 0 in the [ipaddress] implementattion: [grep = search=3D\.0*&replace=3D.]080.010.001.305[/grep] will clean it, except = the leading one. A full grep version would do the right job with \b0+ - chris > On 16 Jan 2015, at 04:58, Stuart Tremain wrote: >=20 > I would like to see some more development and precise documentation of = GREP. >=20 >=20 > Kind regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 >> On 16 Jan 2015, at 12:17 pm, Kenneth Grome = wrote: >>=20 >> One nice improvement might be some new options for [middle]. How >> about "endafter" that works from the beginning of the character >> string? Let's start with this char string: >>=20 >> [text]s=3Dabc1xyz2abc3xyz4abc5xyz[/text] >>=20 >> Then we can easily extract "abc1xyz" like this: >>=20 >> [middle endafter=3Dxyz][s][/middle] >>=20 >> And with some new "count" options we can extract "abc1xyz2abc3xyz" >> like this: >>=20 >> [middle endafter=3Dxyz&endcount=3D2][s][/middle] >>=20 >> Or this to extract "3xyz4": >>=20 >> [middle startafter=3Dabc&startcount=3D2&endbefore=3Dabc][s][/middle] >>=20 >> And how about this to extract each sequence of "?xyz": >>=20 >> [loop start=3D1&end=3D99] >> [text]string[index]=3D[middle >> = startafter=3Dabc&startcount=3D[index]&endafter=3Dxyz&endcount=3D[index]][s= ][/middle][/text] >> [/loop] >>=20 >> Just some thoughts to keep the talk list lively! >>=20 >> :) >>=20 >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Management >> --------------------------------------------------------- >> 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 >=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 Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [middle] << assistance need (Kenneth Grome 2016)
  2. Re: [WebDNA] [middle] << assistance need (Palle Bo Nielsen 2016)
  3. Re: [WebDNA] [middle] << assistance need (christophe.billiottet@webdna.us 2016)
  4. Re: [WebDNA] [middle] << assistance need (Kenneth Grome 2016)
  5. Re: [WebDNA] [middle] << assistance need (Palle Bo Nielsen 2016)
  6. Re: [WebDNA] [middle] << assistance need (Donovan Brooke 2016)
  7. [WebDNA] [middle] << assistance need (Palle Bo Nielsen 2016)
  8. Re: [WebDNA] [middle] (Donovan Brooke 2015)
  9. Re: [WebDNA] [middle] ("WJ Starck, DDS" 2015)
  10. Re: [WebDNA] [middle] (Kenneth Grome 2015)
  11. Re: [WebDNA] [middle] (christophe.billiottet@webdna.us 2015)
  12. Re: [WebDNA] [middle] (Brian Burton 2015)
  13. Re: [WebDNA] [middle] (Stuart Tremain 2015)
  14. [WebDNA] [middle] (Kenneth Grome 2015)
Interesting ideas from Ken about making [middle] a more powerful codon. = Let=92s work on this as I am very interested by new tools that can = handle text better. About GREP, the current implementation is old and basic. There is no = full documentation as far as I know. Unfortunately, our GREP syntax = would collide with the full GREP implementation, making it backward = incompatible. All those who implemented [grep] in their design would see = it behave a different way. If we can include the full version of grep in = WebDNA (I have to check if it is under GNU General Public License), we = could name it [grep2] Take the 0 in the [ipaddress] implementattion: [grep = search=3D\.0*&replace=3D.]080.010.001.305[/grep] will clean it, except = the leading one. A full grep version would do the right job with \b0+ - chris > On 16 Jan 2015, at 04:58, Stuart Tremain wrote: >=20 > I would like to see some more development and precise documentation of = GREP. >=20 >=20 > Kind regards >=20 > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 >> On 16 Jan 2015, at 12:17 pm, Kenneth Grome = wrote: >>=20 >> One nice improvement might be some new options for [middle]. How >> about "endafter" that works from the beginning of the character >> string? Let's start with this char string: >>=20 >> [text]s=3Dabc1xyz2abc3xyz4abc5xyz[/text] >>=20 >> Then we can easily extract "abc1xyz" like this: >>=20 >> [middle endafter=3Dxyz][s][/middle] >>=20 >> And with some new "count" options we can extract "abc1xyz2abc3xyz" >> like this: >>=20 >> [middle endafter=3Dxyz&endcount=3D2][s][/middle] >>=20 >> Or this to extract "3xyz4": >>=20 >> [middle startafter=3Dabc&startcount=3D2&endbefore=3Dabc][s][/middle] >>=20 >> And how about this to extract each sequence of "?xyz": >>=20 >> [loop start=3D1&end=3D99] >> [text]string[index]=3D[middle >> = startafter=3Dabc&startcount=3D[index]&endafter=3Dxyz&endcount=3D[index]][s= ][/middle][/text] >> [/loop] >>=20 >> Just some thoughts to keep the Talk List lively! >>=20 >> :) >>=20 >> Regards, >> Kenneth Grome >> WebDNA Solutions >> http://www.webdnasolutions.com >> Web Database Systems and Linux Server Management >> --------------------------------------------------------- >> 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 >=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 christophe.billiottet@webdna.us

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:

[WebDNA] [BULK] which of these tags exist in 7.0 (2011) Note added to [sendmail] in Docs (2004) SiteGuard Admin Feature ? (1997) [WebDNA] Question for WSC ... (2008) [WebDNA] Error 500 with SUMM=T (2017) Strange ThisURL under Linux (2000) form image (2000) WebCatalog NT beta 18 problem (1997) New Plug-in and Type 11 errors (1997) Surprise x and y post args (1998) RED QUESTION MARKS AGAIN (1999) Problems passing [SKU] with $Replace in 2.0 (1997) Feature Request: DB Field manipulation (1998) WebCatalog for Postcards ? (1997) Search in 2 or more catalogs (1997) Sorting by date (1997) Mozilla/4. and Browser Info.txt (1997) Install webcat on intel/linux box. (2000) best way to test for the existence of a parameter in a url (2003) RE: Explorer oddities (1997)