Re: Middle problem
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56275
interpreted = N
texte = Try this[formvariables][showif [url][name][/url]^[url]"picture"[/url]]PictureName=[grep search="&replace=][Middle StartAfter=filename=][name][/Middle][/grep][/showif][/formvariables]On 20 Feb 2004, at 12:56 PM, Aaron Lynch wrote:> Hi All,>> I am trying to use [middle] to pull a filename out of a multipart > encoded> form. The string I have is:>> Content-Disposition: form-data; name="picture"; > filename="garagedemo.pdf"> Content-Type: application/pdf>>> I would like to get everything after filename=" and before " Content>> Middle is just not working. I tried urling the string, and using > [middle> startafter=filename%3D%22]>> But that returns the whole string.>> I can use a nasty combo of middle startafter=filename and then > getchars to> get rid of the =" but that's lame.>> Can anyone tell me how to do this in one middle context (and maybe > explain> why it doesn't work when urled)>> Or, alternatively suggest a grep string to do what I want?>>> -------------------------------------------------------------> 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://webdna.smithmicro.com/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Try this[formvariables][showif [url][name][/url]^[url]"picture"[/url]]PictureName=[grep search="&replace=][Middle StartAfter=filename=][name][/Middle][/grep][/showif][/formvariables]On 20 Feb 2004, at 12:56 PM, Aaron Lynch wrote:> Hi All,>> I am trying to use [middle] to pull a filename out of a multipart > encoded> form. The string I have is:>> Content-Disposition: form-data; name="picture"; > filename="garagedemo.pdf"> Content-Type: application/pdf>>> I would like to get everything after filename=" and before " Content>> Middle is just not working. I tried urling the string, and using > [middle> startafter=filename%3D%22]>> But that returns the whole string.>> I can use a nasty combo of middle startafter=filename and then > getchars to> get rid of the =" but that's lame.>> Can anyone tell me how to do this in one middle context (and maybe > explain> why it doesn't work when urled)>> Or, alternatively suggest a grep string to do what I want?>>> -------------------------------------------------------------> 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://webdna.smithmicro.com/>>RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +612 9908 4837-------------------------------------------------------------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://webdna.smithmicro.com/
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:
Search/sort in URL Was: GuestBook example (1997)
Bulk Processing Offline (2004)
syntax question, not in online refernce (1997)
[WebDNA] Record click-thrus (2008)
WebCat2b12 CGI Mac - [shownext] problem (1997)
Navigator 4.0 & tables (1997)
Merging databases (1997)
For those of you not on the WebCatalog Beta... (1997)
[if] (2003)
Expected Behavior? (1999)
Sandbox Administation (2003)
WebTen and WebCat (1997)
[WriteFile] problems (1997)
Convertchars Problem (2004)
Checkboxes (1997)
Where is f2? (1997)
[writefile] (1997)
Search in 2 or more catalogs (1997)
Documentation Feedback (1997)
AppleScript/.db (was:FTP to WebStar) (2001)