Re: String processing

2007-10-23 Thread Mark Wagner
On 10/23/07, Matthew Whipple <[EMAIL PROTECTED]> wrote: > Mark Wagner wrote: > > I'm working on a program to process Wikipedia pages. Wikipedia pages > > can contain templates of the form: > > > > {{template name > > |key = value > > |key2 = value2 > > |... > > }} > > > > Any value may in turn be

Re: String processing

2007-10-23 Thread Dr.Ruud
"Mark Wagner" schreef: > I'm working on a program to process Wikipedia pages. Wikipedia pages > can contain templates of the form: > > {{template name > |key = value > |key2 = value2 > | ... > }} > > Any value may in turn be a template, with essentially no limit to the > level of nesting. Given

Re: String processing

2007-10-23 Thread Matthew Whipple
Mark Wagner wrote: > I'm working on a program to process Wikipedia pages. Wikipedia pages > can contain templates of the form: > > {{template name > |key = value > |key2 = value2 > |... > }} > > Any value may in turn be a template, with essentially no limit to the > level of nesting. Given a "key

Re: String processing

2007-10-23 Thread yitzle
Recursion is the way I'd solve something like this. Start processing the data, line by line, and when you hit a 'begin template' ({{), recursively process it. An example of a nested template and a sample of what you are trying to generate might make it easier to be specific about the solution --

String processing

2007-10-23 Thread Mark Wagner
I'm working on a program to process Wikipedia pages. Wikipedia pages can contain templates of the form: {{template name |key = value |key2 = value2 |... }} Any value may in turn be a template, with essentially no limit to the level of nesting. Given a "key = value" pair, how would I go about re

Re: Query String processing

2002-11-09 Thread LRMK
Use a html form to post name and value to the manage file instead of query string - Original Message - From: "Johnstone, Colin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 06, 2002 3:54 AM Subject: Query String processing > Hi

Query String Processing

2002-11-05 Thread Johnstone, Colin
Hi all, I am writing an administration interface to my mailing list. Upon opening the program it displays the email addresses of all the subscribers along with a delete link next to each name. The subscribers are written to a hash. When you click delete link the name/value pair is passed back

Query String processing

2002-11-05 Thread Johnstone, Colin
Hi all, I am writing an administration interface to my mailing list. Upon opening the program it displays the email addresses of all the subscribers along with a delete link next to each name. The subscribers are written to a hash. When you click delete link the name/value pair is passed back