regex to avoid escaped quotes or double quotes

J

jOhn

[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
 
P

Phlip

jOhn said:
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!)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top