Re: Regular expression to parse incoming data stream?

2001-02-15 Thread David Cummins

Isn't it Unicode??

David

James Birchler wrote:
> 
> Thanks, Paul.  Here is the output I'm getting. The first few lines are me
> checking to see if the http request was successful (200=yes); 69 is the
> length of the file being returned; MIME type unknown (???); and then me
> trying to print the cfhttp.filecontent in a variety of ways. The rest is the
> output from your code.  Any ideas on why I'm getting the "not ASCII test"
> message, or what I can do about it? Is there some way to make CF think it's
> getting ASCII text (b/c I _know_ the xml coming is really is ASCII!!!)?
> 
> Much thanks,
> 
> James

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream? (REPOST)

2001-01-31 Thread Keith Thornburn

Just to add that the bug is with CFHTTP.

Keith

-Original Message-
From: Keith Thornburn [mailto:[EMAIL PROTECTED]]
Sent: 31 January 2001 09:34
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream? (REPOST)


Take a look at Allaire's knowledge base - there is a bug fix for this.

Keith

-Original Message-
From: James Birchler [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2001 22:21
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream? (REPOST)


The code I pasted in didn't appear in my original reply; here goes again...

--
Thanks, Paul.  Here is the output I'm getting. The first few lines are me
checking to see if the http request was successful (200=yes); 69 is the
length of the file being returned; MIME type unknown (???); and then me
trying to print the cfhttp.filecontent in a variety of ways. The rest is the
output from your code.  Any ideas on why I'm getting the "not ASCII test"
message, or what I can do about it? Is there some way to make CF think it's
getting ASCII text (b/c I _know_ the xml coming is really is ASCII!!!)?

Much thanks,

James

> 200 Succes 69 Unable to determine MIME type of file.

> The requested file is not ASCII text and can not be rendered.

> The requested file is not ASCII text and can not be rendered.

> The requested file is not ASCII text and can not be rendered.


> 
> 
> 
> 
> 
> 
> 
> The requested file is not ASCII text and can not be
rendered.
> 
> 
> 
> 

> Data
> xml.root.data: 
> 
> 
> 
> 
> 
> The requested file is not ASCII text and can not be
rendered.
> 
> 
> 

> xml.root.dataend: 195
> xml.root.datastart: 27
> xml.root.name: wddxPacket
> xml.root.nameend: 12
> xml.root.namestart: 2

-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 9:05 AM
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream?


Adding to my previous post (if you can understand the code) here is my idea
of what you should do.  Just cut and paste it into a cfm file and run it.

Paul

-code-







#Replace(Replace(mywddx, "<", "<", "all"), ">", ">", "all")#



xmlpacket = mywddx;
xml.root = StructNew();
xml.root.namestart = Find("<", xmlpacket, 1) + 1;
xml.root.nameend = REFind("(>| )", xmlpacket, xml.root.namestart);
temp_count = xml.root.nameend - xml.root.namestart;
xml.root.name = Mid(xmlpacket, xml.root.namestart, temp_count);
xml.root.datastart = Find(">", xmlpacket, xml.root.namestart) + 1;
xml.root.dataend = Find("", xmlpacket,
xml.root.datastart);
temp_count = xml.root.dataend - xml.root.datastart;
xml.root.data = Mid(xmlpacket, xml.root.datastart, temp_count);


Data


xml.root.#Lcase(i)#: #Replace(Replace(Evaluate("xml.root." &
i), "<", "<", "all"), ">", ">", "all")#



-code-

  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 2:52 PM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > I'm running CF under Linux; I think SOXML only works with
  > Windows. Also, my
  > incoming data stream is so small, I'm not sure it's worthwhile
  > to go with a
  > full XML parsing solution.
  >
  > If anyone out that can lead me to the light on regular expressions, I'd
  > really appreciate it.
  >
  > Thanks,
  >
  > James
  > -Original Message-
  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 12:47 AM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > Could I recommend the  custom tag, which is an alternative to
  > .
  >
  > This is available via Allaire's tag gallery.
  >
  > Mike.
  >
  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: 30 January 2001 01:05
  > To: CF-Talk
  > Subject: Regular expression to parse incoming data stream?
  >
  >
  > I am sending an http request to a server (using  and
  >  )
  > which is responding with some xml of the form:
  >
  > 
  > 353
  > 
  > 
  > 100
  > 
  >
  > where the numbers are just examples of what comes back. Can
  > anyone give me
  > an example of what I'd need to do to use regular expressions to
  > parse the
  > incoming data stream (the server response) to just take out the
  > numbers and
  > assign them to variables in CF?
  >
  > I've explored the WDDX solution but it turns out not to be
  > viable in this
  > case.
  >
  > Thanks,
  >
  > James
  >
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream? (REPOST)

2001-01-31 Thread Keith Thornburn

Take a look at Allaire's knowledge base - there is a bug fix for this.

Keith

-Original Message-
From: James Birchler [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2001 22:21
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream? (REPOST)


The code I pasted in didn't appear in my original reply; here goes again...

--
Thanks, Paul.  Here is the output I'm getting. The first few lines are me
checking to see if the http request was successful (200=yes); 69 is the
length of the file being returned; MIME type unknown (???); and then me
trying to print the cfhttp.filecontent in a variety of ways. The rest is the
output from your code.  Any ideas on why I'm getting the "not ASCII test"
message, or what I can do about it? Is there some way to make CF think it's
getting ASCII text (b/c I _know_ the xml coming is really is ASCII!!!)?

Much thanks,

James

> 200 Succes 69 Unable to determine MIME type of file.

> The requested file is not ASCII text and can not be rendered.

> The requested file is not ASCII text and can not be rendered.

> The requested file is not ASCII text and can not be rendered.


> 
> 
> 
> 
> 
> 
> 
> The requested file is not ASCII text and can not be
rendered.
> 
> 
> 
> 

> Data
> xml.root.data: 
> 
> 
> 
> 
> 
> The requested file is not ASCII text and can not be
rendered.
> 
> 
> 

> xml.root.dataend: 195
> xml.root.datastart: 27
> xml.root.name: wddxPacket
> xml.root.nameend: 12
> xml.root.namestart: 2

-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 9:05 AM
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream?


Adding to my previous post (if you can understand the code) here is my idea
of what you should do.  Just cut and paste it into a cfm file and run it.

Paul

-code-







#Replace(Replace(mywddx, "<", "<", "all"), ">", ">", "all")#



xmlpacket = mywddx;
xml.root = StructNew();
xml.root.namestart = Find("<", xmlpacket, 1) + 1;
xml.root.nameend = REFind("(>| )", xmlpacket, xml.root.namestart);
temp_count = xml.root.nameend - xml.root.namestart;
xml.root.name = Mid(xmlpacket, xml.root.namestart, temp_count);
xml.root.datastart = Find(">", xmlpacket, xml.root.namestart) + 1;
xml.root.dataend = Find("", xmlpacket,
xml.root.datastart);
temp_count = xml.root.dataend - xml.root.datastart;
xml.root.data = Mid(xmlpacket, xml.root.datastart, temp_count);


Data


xml.root.#Lcase(i)#: #Replace(Replace(Evaluate("xml.root." &
i), "<", "<", "all"), ">", ">", "all")#



-code-

  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 2:52 PM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > I'm running CF under Linux; I think SOXML only works with
  > Windows. Also, my
  > incoming data stream is so small, I'm not sure it's worthwhile
  > to go with a
  > full XML parsing solution.
  >
  > If anyone out that can lead me to the light on regular expressions, I'd
  > really appreciate it.
  >
  > Thanks,
  >
  > James
  > -Original Message-
  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 12:47 AM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > Could I recommend the  custom tag, which is an alternative to
  > .
  >
  > This is available via Allaire's tag gallery.
  >
  > Mike.
  >
  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: 30 January 2001 01:05
  > To: CF-Talk
  > Subject: Regular expression to parse incoming data stream?
  >
  >
  > I am sending an http request to a server (using  and
  >  )
  > which is responding with some xml of the form:
  >
  > 
  > 353
  > 
  > 
  > 100
  > 
  >
  > where the numbers are just examples of what comes back. Can
  > anyone give me
  > an example of what I'd need to do to use regular expressions to
  > parse the
  > incoming data stream (the server response) to just take out the
  > numbers and
  > assign them to variables in CF?
  >
  > I've explored the WDDX solution but it turns out not to be
  > viable in this
  > case.
  >
  > Thanks,
  >
  > James
  >
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream?

2001-01-31 Thread Paul Johnston

There are various messages in the archives relating to this.  Have a search
and it will tell you.

It's a common problem that for the life of me I can't remember what the
solution is.

Paul

  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 8:45 PM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > Thanks, Paul.  Here is the output I'm getting. The first few
  > lines are me
  > checking to see if the http request was successful (200=yes); 69 is the
  > length of the file being returned; MIME type unknown (???); and then me
  > trying to print the cfhttp.filecontent in a variety of ways.
  > The rest is the
  > output from your code.  Any ideas on why I'm getting the "not
  > ASCII test"
  > message, or what I can do about it? Is there some way to make
  > CF think it's
  > getting ASCII text (b/c I _know_ the xml coming is really is ASCII!!!)?
  >
  > Much thanks,
  >
  > James
  >
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream? (REPOST)

2001-01-30 Thread James Birchler

The code I pasted in didn't appear in my original reply; here goes again...

--
Thanks, Paul.  Here is the output I'm getting. The first few lines are me
checking to see if the http request was successful (200=yes); 69 is the
length of the file being returned; MIME type unknown (???); and then me
trying to print the cfhttp.filecontent in a variety of ways. The rest is the
output from your code.  Any ideas on why I'm getting the "not ASCII test"
message, or what I can do about it? Is there some way to make CF think it's
getting ASCII text (b/c I _know_ the xml coming is really is ASCII!!!)?

Much thanks,

James

> 200 Succes 69 Unable to determine MIME type of file.

> The requested file is not ASCII text and can not be rendered.

> The requested file is not ASCII text and can not be rendered.

> The requested file is not ASCII text and can not be rendered.


> 
> 
> 
> 
> 
> 
> 
> The requested file is not ASCII text and can not be
rendered.
> 
> 
> 
> 

> Data
> xml.root.data: 
> 
> 
> 
> 
> 
> The requested file is not ASCII text and can not be
rendered.
> 
> 
> 

> xml.root.dataend: 195
> xml.root.datastart: 27
> xml.root.name: wddxPacket
> xml.root.nameend: 12
> xml.root.namestart: 2

-Original Message-
From: Paul Johnston [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 9:05 AM
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream?


Adding to my previous post (if you can understand the code) here is my idea
of what you should do.  Just cut and paste it into a cfm file and run it.

Paul

-code-







#Replace(Replace(mywddx, "<", "<", "all"), ">", ">", "all")#



xmlpacket = mywddx;
xml.root = StructNew();
xml.root.namestart = Find("<", xmlpacket, 1) + 1;
xml.root.nameend = REFind("(>| )", xmlpacket, xml.root.namestart);
temp_count = xml.root.nameend - xml.root.namestart;
xml.root.name = Mid(xmlpacket, xml.root.namestart, temp_count);
xml.root.datastart = Find(">", xmlpacket, xml.root.namestart) + 1;
xml.root.dataend = Find("", xmlpacket,
xml.root.datastart);
temp_count = xml.root.dataend - xml.root.datastart;
xml.root.data = Mid(xmlpacket, xml.root.datastart, temp_count);


Data


xml.root.#Lcase(i)#: #Replace(Replace(Evaluate("xml.root." &
i), "<", "<", "all"), ">", ">", "all")#



-code-

  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 2:52 PM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > I'm running CF under Linux; I think SOXML only works with
  > Windows. Also, my
  > incoming data stream is so small, I'm not sure it's worthwhile
  > to go with a
  > full XML parsing solution.
  >
  > If anyone out that can lead me to the light on regular expressions, I'd
  > really appreciate it.
  >
  > Thanks,
  >
  > James
  > -Original Message-
  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 12:47 AM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > Could I recommend the  custom tag, which is an alternative to
  > .
  >
  > This is available via Allaire's tag gallery.
  >
  > Mike.
  >
  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: 30 January 2001 01:05
  > To: CF-Talk
  > Subject: Regular expression to parse incoming data stream?
  >
  >
  > I am sending an http request to a server (using  and
  >  )
  > which is responding with some xml of the form:
  >
  > 
  > 353
  > 
  > 
  > 100
  > 
  >
  > where the numbers are just examples of what comes back. Can
  > anyone give me
  > an example of what I'd need to do to use regular expressions to
  > parse the
  > incoming data stream (the server response) to just take out the
  > numbers and
  > assign them to variables in CF?
  >
  > I've explored the WDDX solution but it turns out not to be
  > viable in this
  > case.
  >
  > Thanks,
  >
  > James
  >
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream?

2001-01-30 Thread James Birchler

Thanks, Paul.  Here is the output I'm getting. The first few lines are me
checking to see if the http request was successful (200=yes); 69 is the
length of the file being returned; MIME type unknown (???); and then me
trying to print the cfhttp.filecontent in a variety of ways. The rest is the
output from your code.  Any ideas on why I'm getting the "not ASCII test"
message, or what I can do about it? Is there some way to make CF think it's
getting ASCII text (b/c I _know_ the xml coming is really is ASCII!!!)?

Much thanks,

James
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream?

2001-01-30 Thread Paul Johnston

Adding to my previous post (if you can understand the code) here is my idea
of what you should do.  Just cut and paste it into a cfm file and run it.

Paul

-code-







#Replace(Replace(mywddx, "<", "<", "all"), ">", ">", "all")#



xmlpacket = mywddx;
xml.root = StructNew();
xml.root.namestart = Find("<", xmlpacket, 1) + 1;
xml.root.nameend = REFind("(>| )", xmlpacket, xml.root.namestart);
temp_count = xml.root.nameend - xml.root.namestart;
xml.root.name = Mid(xmlpacket, xml.root.namestart, temp_count);
xml.root.datastart = Find(">", xmlpacket, xml.root.namestart) + 1;
xml.root.dataend = Find("", xmlpacket,
xml.root.datastart);
temp_count = xml.root.dataend - xml.root.datastart;
xml.root.data = Mid(xmlpacket, xml.root.datastart, temp_count);


Data


xml.root.#Lcase(i)#: #Replace(Replace(Evaluate("xml.root." &
i), "<", "<", "all"), ">", ">", "all")#



---------code-----

  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 2:52 PM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > I'm running CF under Linux; I think SOXML only works with
  > Windows. Also, my
  > incoming data stream is so small, I'm not sure it's worthwhile
  > to go with a
  > full XML parsing solution.
  >
  > If anyone out that can lead me to the light on regular expressions, I'd
  > really appreciate it.
  >
  > Thanks,
  >
  > James
  > -Original Message-
  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 12:47 AM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > Could I recommend the  custom tag, which is an alternative to
  > .
  >
  > This is available via Allaire's tag gallery.
  >
  > Mike.
  >
  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: 30 January 2001 01:05
  > To: CF-Talk
  > Subject: Regular expression to parse incoming data stream?
  >
  >
  > I am sending an http request to a server (using  and
  >  )
  > which is responding with some xml of the form:
  >
  > 
  > 353
  > 
  > 
  > 100
  > 
  >
  > where the numbers are just examples of what comes back. Can
  > anyone give me
  > an example of what I'd need to do to use regular expressions to
  > parse the
  > incoming data stream (the server response) to just take out the
  > numbers and
  > assign them to variables in CF?
  >
  > I've explored the WDDX solution but it turns out not to be
  > viable in this
  > case.
  >
  > Thanks,
  >
  > James
  >
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream?

2001-01-30 Thread Paul Johnston

Erm...

CF on Linux -> use James Clarks Expat Parser for XML.

There isn't currently a simple CF interface for this though (one day...)

There is a simple Perl interface, and since you're on Linux, pass the
processing to something that can handle it.  My best guess would be Perl.
The reason is that there are numerous XML modules for Perl, and they are
excellently supported by a mailing list.

Otherwise, if you are not getting complex data back (ie no CDATA sections)
then for the regex (bear in mind you can't really check whether it's an XML
packet beforehand so it's really only a hack) you need to take everything in
the <> and find everything up to the  with the same name.

1) Create a structure to hold the XML (can store the whole thing as a
structure)
2) Then, find the first tag name (ie find a < and then the next bit of text
up to a ">" or a " ") and then find the attributes (everything up to the
next ">"...
3) Find the end tag for it ()
4) everything in between is the data (which can contain XML)
5) pass the rest of the packet through the "parser"

Anyway, that's the way I'd do it.  Maybe I'll try and do this!

Paul

PS: CDATA sections look like this:
--




  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 2:52 PM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > I'm running CF under Linux; I think SOXML only works with
  > Windows. Also, my
  > incoming data stream is so small, I'm not sure it's worthwhile
  > to go with a
  > full XML parsing solution.
  >
  > If anyone out that can lead me to the light on regular expressions, I'd
  > really appreciate it.
  >
  > Thanks,
  >
  > James
  > -----Original Message-----
  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
  > Sent: Tuesday, January 30, 2001 12:47 AM
  > To: CF-Talk
  > Subject: RE: Regular expression to parse incoming data stream?
  >
  >
  > Could I recommend the  custom tag, which is an alternative to
  > .
  >
  > This is available via Allaire's tag gallery.
  >
  > Mike.
  >
  > -Original Message-
  > From: James Birchler [mailto:[EMAIL PROTECTED]]
  > Sent: 30 January 2001 01:05
  > To: CF-Talk
  > Subject: Regular expression to parse incoming data stream?
  >
  >
  > I am sending an http request to a server (using  and
  >  )
  > which is responding with some xml of the form:
  >
  > 
  > 353
  > 
  > 
  > 100
  > 
  >
  > where the numbers are just examples of what comes back. Can
  > anyone give me
  > an example of what I'd need to do to use regular expressions to
  > parse the
  > incoming data stream (the server response) to just take out the
  > numbers and
  > assign them to variables in CF?
  >
  > I've explored the WDDX solution but it turns out not to be
  > viable in this
  > case.
  >
  > Thanks,
  >
  > James
  >
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream?

2001-01-30 Thread James Birchler

I'm running CF under Linux; I think SOXML only works with Windows. Also, my
incoming data stream is so small, I'm not sure it's worthwhile to go with a
full XML parsing solution.

If anyone out that can lead me to the light on regular expressions, I'd
really appreciate it.

Thanks,

James
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 12:47 AM
To: CF-Talk
Subject: RE: Regular expression to parse incoming data stream?


Could I recommend the  custom tag, which is an alternative to
.

This is available via Allaire's tag gallery.

Mike.

-Original Message-
From: James Birchler [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2001 01:05
To: CF-Talk
Subject: Regular expression to parse incoming data stream?


I am sending an http request to a server (using  and  )
which is responding with some xml of the form:


353


100


where the numbers are just examples of what comes back. Can anyone give me
an example of what I'd need to do to use regular expressions to parse the
incoming data stream (the server response) to just take out the numbers and
assign them to variables in CF?

I've explored the WDDX solution but it turns out not to be viable in this
case.

Thanks,

James
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Regular expression to parse incoming data stream?

2001-01-30 Thread mike . connolly

Could I recommend the  custom tag, which is an alternative to
.

This is available via Allaire's tag gallery.

Mike.

-Original Message-
From: James Birchler [mailto:[EMAIL PROTECTED]]
Sent: 30 January 2001 01:05
To: CF-Talk
Subject: Regular expression to parse incoming data stream?


I am sending an http request to a server (using  and  )
which is responding with some xml of the form:


353


100


where the numbers are just examples of what comes back. Can anyone give me
an example of what I'd need to do to use regular expressions to parse the
incoming data stream (the server response) to just take out the numbers and
assign them to variables in CF?

I've explored the WDDX solution but it turns out not to be viable in this
case.

Thanks,

James
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: [Regular expression to parse incoming data stream?]

2001-01-29 Thread Alex

get rid of all alpha and /, then you'll have a '<>' delimited list


"James Birchler" <[EMAIL PROTECTED]> wrote:
I am sending an http request to a server (using  and  )
which is responding with some xml of the form:


353


100


where the numbers are just examples of what comes back. Can anyone give me
an example of what I'd need to do to use regular expressions to parse the
incoming data stream (the server response) to just take out the numbers and
assign them to variables in CF?

I've explored the WDDX solution but it turns out not to be viable in this
case.

Thanks,

James
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists