Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

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

 [1/2] from: terrence_brannon::instinet::com at: 13-Sep-2000 15:29


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? <<Disclaimer>> This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and/or CONFIDENTIAL or both. This email is intended only for the personal and confidential use of the recipient(s) named above. If the reader of this email is not an intended recipient, you have received this email in error and any review, dissemination, distribution or copying is strictly prohibited. If you have received this email in error, please notify the sender immediately by return email and permanently delete the copy you received. Thank you.

 [2/2] from: mdb:gci at: 13-Sep-2000 15:02


>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.