>I tried the above example and change the parse rule to {=} instead of 
>{="} and
>got the same result:

>> probe parse <img src="test.gif" width=123> {="}
["img" "src" "test.gif" "width" "123"]
== ["img" "src" "test.gif" "width" "123"]
>> probe parse <img src="test.gif" width=123> {=}
["img" "src" "test.gif" "width" "123"]
== ["img" "src" "test.gif" "width" "123"]

>So, what is the purpose of the quote mark in the rules?

In this example, the quote mark is meaningless.
As the quote mark is used as a string delimiter, they will be taken out
during the parse operation, but then added back when the parsed characters
are made into a string.

So, "test.gif" becomes test.gif, which becomes "test.gif" again.
Maybe that's not very well explained, but i hope you get the idea.

Mike.
 




Reply via email to