Re: [WebDNA] [middle]

This WebDNA talk-list message is from

2015


It keeps the original formatting.
numero = 111937
interpreted = N
texte = I would like to see some more development and precise documentation of = GREP. Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > 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 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)
I would like to see some more development and precise documentation of = GREP. Kind regards Stuart Tremain IDFK Web Developments AUSTRALIA webdna@idfk.com.au > 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 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:

webcat-sys (1998) OT: typhoon manual (2000) Simple counter - how? (1997) WebCatalog Features (1997) Emailer setup (1997) Emailer (WebCat2) (1997) blank page from template (1997) Cannot calculate prices (1997) Interesting speed comparison .. (2003) Adding more than one item and QTY to cart (2000) plugin-acgi, different results (1997) syntax question, not in online refernce (1997) WebCat2final1 crashes (1997) Email within tmpl ? (1997) WebCat2: Formulas.db question (1997) [delete] problem (1997) Country & Ship-to address & other fields ? (1997) [ot] g5 xserve drives (2004) [WebDNA] [OT] Multiple SSL certs on same server? (2014) Mime Headers for Mail (1998)