Re: [WebDNA] Quick Grep question

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102250
interpreted = N
texte = Plus is an odd one, as some form variables convert spaces to pluses. Would recommend converting + or %2B to whatever you wish with convertchars or convertwords TC On 26 Mar 2009, at 12:31, William DeVaul wrote: > That is strange. I could never get the plus sign to work as expected > in webdna. > > Bill > > > On Mar 26, 2009, at 7:40 AM, Toby Cox wrote: > >> + is reserved in grep. It means 'more than one' ie [grep search=[a- >> z]+&replace=][presssite][/grep] means "search for any sequence of >> more than one lower case letter and replace with nothing" >> >> Try [grep search=\+&replace= ][PressSite][/grep] >> >> Although I'm not sure how webdna handles escaping characters, so >> you may have to be creative... >> >> >> >>> Hi >>> >>> Don't use grep much so not sure why this is not working. I am >>> trying to swap all instances of + for a space using the following... >>> >>> [grep search=+&replace= ][PressSite][/grep] >>> >>> This works for any other character I've tried just not the +. I >>> assume I have to escape it or something just not sure how, any >>> help much appreciated. >>> >>> Cheers >>> ======================================== >>> Steve Craig - Asylum Interactive Ltd >>> Tel +44 1330 860550 Fax +44 1330 860880 >>> ======================================== >>> http://www.asylumweb.com >>> Email: steve@asylumweb.com >>> Skype: s.craig - iChat: steve.craig >>> ======================================== >>> >>> >>> >>> >>> >>> --------------------------------------------------------- >>> 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 >>> old archives: http://dev.webdna.us/TalkListArchive/ >> >> --------------------------------------------------------- >> 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 >> old archives: http://dev.webdna.us/TalkListArchive/ > --------------------------------------------------------- > 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 > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. why start a new thread the official way, --- WAS: Re: [WebDNA] Quick grep question (John Butler 2009)
  2. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  3. Re: [WebDNA] Quick grep question ("Dan Strong" 2009)
  4. Re: [WebDNA] Quick grep question (Donovan Brooke 2009)
  5. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  6. Re: [WebDNA] Quick grep question (Donovan Brooke 2009)
  7. Re: [WebDNA] Quick grep question (Kenneth Grome 2009)
  8. Re: [WebDNA] Quick grep question (Patrick McCormick 2009)
  9. Re: [WebDNA] Quick grep question (Marc Thompson 2009)
  10. Re: [WebDNA] Quick grep question (Kenneth Grome 2009)
  11. [WebDNA] Quick grep question (Patrick McCormick 2009)
  12. Re: [WebDNA] Quick Grep question (Govinda 2009)
  13. Re: [WebDNA] Quick Grep question (Steve Craig 2009)
  14. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  15. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  16. Re: [WebDNA] Quick Grep question (William DeVaul 2009)
  17. Re: [WebDNA] Quick Grep question (Steve Craig 2009)
  18. Re: [WebDNA] Quick Grep question (Toby Cox 2009)
  19. [WebDNA] Quick Grep question (Steve Craig 2009)
Plus is an odd one, as some form variables convert spaces to pluses. Would recommend converting + or %2B to whatever you wish with convertchars or convertwords TC On 26 Mar 2009, at 12:31, William DeVaul wrote: > That is strange. I could never get the plus sign to work as expected > in webdna. > > Bill > > > On Mar 26, 2009, at 7:40 AM, Toby Cox wrote: > >> + is reserved in grep. It means 'more than one' ie [grep search=[a- >> z]+&replace=][presssite][/grep] means "search for any sequence of >> more than one lower case letter and replace with nothing" >> >> Try [grep search=\+&replace= ][PressSite][/grep] >> >> Although I'm not sure how webdna handles escaping characters, so >> you may have to be creative... >> >> >> >>> Hi >>> >>> Don't use grep much so not sure why this is not working. I am >>> trying to swap all instances of + for a space using the following... >>> >>> [grep search=+&replace= ][PressSite][/grep] >>> >>> This works for any other character I've tried just not the +. I >>> assume I have to escape it or something just not sure how, any >>> help much appreciated. >>> >>> Cheers >>> ======================================== >>> Steve Craig - Asylum Interactive Ltd >>> Tel +44 1330 860550 Fax +44 1330 860880 >>> ======================================== >>> http://www.asylumweb.com >>> Email: steve@asylumweb.com >>> Skype: s.craig - iChat: steve.craig >>> ======================================== >>> >>> >>> >>> >>> >>> --------------------------------------------------------- >>> 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 >>> old archives: http://dev.webdna.us/TalkListArchive/ >> >> --------------------------------------------------------- >> 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 >> old archives: http://dev.webdna.us/TalkListArchive/ > --------------------------------------------------------- > 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 > old archives: http://dev.webdna.us/TalkListArchive/ Toby Cox

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:

&max= (2003) New command suggestion (1997) WebCatalog NT beta 18 now available (1997) Error: Too many nested [xxx] contexts (1997) WebCat2_Mac RETURNs in .db (1997) Interfacing WebMerchant to www.fedex.com (1997) When to use [convertchars] ?!?!? (2000) Include a big block of text (1997) Quit revisited (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Comments in db? (1997) [quantity] solved (1997) Math (1997) WebDNA Grep help wanted (2004) Help! Strange happenings... (1997) WebCat2 Append problem (B14Macacgi) (1997) WebCat2b15MacPlugin - [protect] (1997) Database wiped clean (2005) Stumpted Again (1997) NewCart+Search with one click ? (1997)