[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

regex to avoid escaped quotes or double quotes

jOhn

1/29/2008 7:40:00 PM

[Note: parts of this message were removed to make it a legal post.]

I am doing an xpath compiler.

Biggest problem is how to ignore single and double quoted literals ... along
with escaped quotes.

Like the following (avoiding the quoted literal):

/some/cool/xml/path[fn:count(subelement[@title
='fn:count("/some/cool/xml/path[fn:count(subelement[@title
='fn:count()'])]")'])]

I'll post more as I work to solve it ... not even posting what i have now as
it is too weak.

-jhn

1 Answer

Phlip

1/29/2008 8:31:00 PM

0

jOhn wrote:

> I am doing an xpath compiler.

> I'll post more as I work to solve it ... not even posting what i have now as
> it is too weak.

Have you raided Hpricot for "inspiration"?

(Its XPath is weak but its parsing in general is excellent!)

--
Phlip