Re: [middle]

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 36073
interpreted = N
texte = How about this,[listwords words=3XL Shirt&delimiters= ][showif [index]=1][word][/showif][/listwords]I assume that you have a variable for the product, say it is [product], then your code woul be; (note: there is a space after delimiters=)[listwords words=[product]&delimiters= ][showif [index]=1][word][/showif][/listwords] anup vertical net http://www.vertical.net ----- Original Message ----- From: Robert Wade To: WebCatalog Talk Sent: Friday, August 11, 2000 11:19 AM Subject: [middle] > Hello All, I have a problem with the middle context. I hope someone can this solve for > me. > > I'm using it to extract a size from a title of a product.. > Example: 3XL Shirt > > I can't use [getchars] because the amount of characters in the size varies from product > to product ( S, 2X, 3XL, etc.). > This is what I'm using... > > [middle startafter=&endbefore= ]3XL Shirt[/middle] > ^This one works fine and returns: 3XL But if the title has more than one space... > > [middle startafter=&endbefore= ]3XL Blue Shirt[/middle] > ^This returns: 3XL Blue > As if it's not recognizing the first space? > > I've also tried these variations in desperation... > [middle startafter=&endbefore=%20]3XL Blue Shirt[/middle] > ^This returns: 3XL Blue > > [middle startafter=&endbefore=[url] [/url]]3XL Blue Shirt[/middle] > ^This returns: 3XL Blue > > --Thanks in Advance! > > > Robert Wade ====================== CABIN6 Design > > ================================================ > |[ //\ ||} || ||\| V| > ================================================ > > www.cabin6.com =============== robert@cabin6.com > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [BULK] [WebDNA] [BULK] [middle] behavior (webdna 2020)
  2. Re: [BULK] [WebDNA] [BULK] [middle] behavior (Stuart Tremain 2020)
  3. Re: [BULK] Re: [WebDNA] [BULK] [middle] behavior (webdna 2020)
  4. Re: [BULK] Re: [WebDNA] [BULK] [middle] behavior (Brian Fries 2020)
  5. [BULK] Re: [WebDNA] [BULK] [middle] behavior (webdna 2020)
  6. [WebDNA] [BULK] [middle] behavior (webdna 2020)
  7. Re: [WebDNA] [middle] << assistance need (Kenneth Grome 2016)
  8. Re: [WebDNA] [middle] << assistance need (Palle Bo Nielsen 2016)
  9. Re: [WebDNA] [middle] << assistance need (christophe.billiottet@webdna.us 2016)
  10. Re: [WebDNA] [middle] << assistance need (Kenneth Grome 2016)
  11. Re: [WebDNA] [middle] << assistance need (Palle Bo Nielsen 2016)
  12. Re: [WebDNA] [middle] << assistance need (Donovan Brooke 2016)
  13. [WebDNA] [middle] << assistance need (Palle Bo Nielsen 2016)
  14. [WebDNA] More thoughts about [middle] (Kenneth Grome 2015)
  15. Re: [WebDNA] [middle] (Donovan Brooke 2015)
  16. Re: [WebDNA] [middle] ("WJ Starck, DDS" 2015)
  17. Re: [WebDNA] [middle] (Kenneth Grome 2015)
  18. Re: [WebDNA] [middle] (christophe.billiottet@webdna.us 2015)
  19. Re: [WebDNA] [middle] (Brian Burton 2015)
  20. Re: [WebDNA] [middle] (Stuart Tremain 2015)
  21. [WebDNA] [middle] (Kenneth Grome 2015)
  22. Re: [WebDNA] Has [middle] always worked this way? (Kenneth Grome 2014)
  23. Re: [WebDNA] Has [middle] always worked this way? (Toby Cox 2014)
  24. Re: [WebDNA] Has [middle] always worked this way? (Kenneth Grome 2014)
  25. Re: [WebDNA] Has [middle] always worked this way? (Kenneth Grome 2014)
  26. Re: [WebDNA] Has [middle] always worked this way? (WebDNA 2014)
  27. Re: [WebDNA] Has [middle] always worked this way? (Dan Strong 2014)
  28. [WebDNA] Has [middle] always worked this way? (Kenneth Grome 2014)
  29. Re: [WebDNA] Escape an ampersand in [middle] (Brian Fries 2009)
  30. [WebDNA] Escape an ampersand in [middle] (Kenneth Grome 2009)
  31. TIP: using [middle] to peel off page.html from [referrer] ( Terry Wilson 2004)
  32. Re: grep / [middle] help SOLVED ( Joe D'Andrea 2003)
  33. grep / [middle] help ( Joe D'Andrea 2003)
  34. Re: [Middle] Probs with "&" ( Rob Marquardt 2003)
  35. [Middle] Probs with "&" ( Clint Davis 2003)
  36. Re: Fun with [middle] (Gary Krockover 2002)
  37. Re: Fun with [middle] (Dennis J. Bonsall, Jr. 2002)
  38. Fun with [middle] (charles kline 2002)
  39. Re: How do I enter a carriage return for my StartAfter valueina [middle] context? (Grant Hulbert 2002)
  40. Re: [middle] of nowhere .. ? (Alain Russell 2001)
  41. [middle] of nowhere .. ? (Alain Russell 2001)
  42. Re: can you use [middle] in a search? (Tim Robinson 2001)
  43. Re: can you use [middle] in a search? (John Peacock 2001)
  44. Re: can you use [middle] in a search? (Will Starck 2001)
  45. Re: can you use [middle] in a search? (Tim Robinson 2001)
  46. Re: can you use [middle] in a search? (Kenneth Grome 2001)
  47. Re: can you use [middle] in a search? (Tim Robinson 2001)
  48. Re: can you use [middle] in a search? (Will Starck 2001)
  49. can you use [middle] in a search? (Tim Robinson 2001)
  50. Re: [middle] (Robert Wade 2000)
  51. Re: [middle] (Anup Setty 2000)
  52. [middle] (Robert Wade 2000)
  53. Re: quick [middle] Q (Kenneth Grome 2000)
  54. Re: quick [middle] Q (John Butler 2000)
  55. Re: quick [middle] Q (Kenneth Grome 2000)
  56. Re: quick [middle] Q (John Butler 2000)
  57. quick [middle] Q (John Butler 2000)
  58. Re: how does [middle] work? (PCS Technical Support 1998)
  59. how does [middle] work? (Olin Lagon 1998)
  60. [middle] ( Extr)
How about this,[listwords words=3XL Shirt&delimiters= ][showif [index]=1][word][/showif][/listwords]I assume that you have a variable for the product, say it is [product], then your code woul be; (note: there is a space after delimiters=)[listwords words=[product]&delimiters= ][showif [index]=1][word][/showif][/listwords] anup vertical net http://www.vertical.net ----- Original Message ----- From: Robert Wade To: WebCatalog Talk Sent: Friday, August 11, 2000 11:19 AM Subject: [middle] > Hello All, I have a problem with the middle context. I hope someone can this solve for > me. > > I'm using it to extract a size from a title of a product.. > Example: 3XL Shirt > > I can't use [getchars] because the amount of characters in the size varies from product > to product ( S, 2X, 3XL, etc.). > This is what I'm using... > > [middle startafter=&endbefore= ]3XL Shirt[/middle] > ^This one works fine and returns: 3XL But if the title has more than one space... > > [middle startafter=&endbefore= ]3XL Blue Shirt[/middle] > ^This returns: 3XL Blue > As if it's not recognizing the first space? > > I've also tried these variations in desperation... > [middle startafter=&endbefore=%20]3XL Blue Shirt[/middle] > ^This returns: 3XL Blue > > [middle startafter=&endbefore=[url] [/url]]3XL Blue Shirt[/middle] > ^This returns: 3XL Blue > > --Thanks in Advance! > > > Robert Wade ====================== CABIN6 Design > > ================================================ > |[ //\ ||} || ||\| V| > ================================================ > > www.cabin6.com =============== robert@cabin6.com > > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/ Anup Setty

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:

I have observed and I am gone. (1998) Searching a field and returning the highest value (1997) page redirect in webDNA (1997) Can you do this??? and other stuff (1997) Permissions (2000) Need Advice for Setting up a Database (1999) executing via commandline (2003) Populating a db from a form textarea (2005) It just Does't add up!!! (1997) Adding discount to cart (2000) PCS Frames (1997) Multiple Merchant Accounts? (1997) [BoldWords] WebCat.acgib15Mac (1997) Email (1998) OT: advice on Wintel server options (1998) Stumped on ShowNext -using variables (1997) PCS Frames-Default page is solution! (1997) new server, can't use [writefile] - code attached [long] (2004) WebCatalog2 Feature Feedback (1996) [WebDNA] fastcgi 7+ & [cart]? (2010)