How to use $LST(Count) in Replace ?
|
Dec. 22, 2012, 10:55 AM
Post: #1
|
|||
|
|||
How to use $LST(Count) in Replace ?
Hi,
longtime user who got by modifying posted filters and creating simple website specific filters but now I have a question on how to use the counter filter. I want to wrap PRE tags in a TABLE tag which would allow me to use javascript to copy specific "tables" to the clipboard. This simple filter works (improvements welcome of course) Code: Match = "<pre\1/pre>" Code: Match = "<pre\1/pre>" I get ProxomiTron Application Error - Read Over=randomhugenumber msgboxes (which I will admit never had seen before) Any guidance or tips would be appreciated. |
|||
Dec. 22, 2012, 10:54 PM
Post: #2
|
|||
|
|||
RE: How to use $LST(Count) in Replace ?
Code: [Patterns] HTH |
|||
The following 1 user says Thank You to JJoe for this post: prxymouse |
Dec. 23, 2012, 12:55 PM
Post: #3
|
|||
|
|||
RE: How to use $LST(Count) in Replace ?
Thank you, I suspect it is pretty close but haven't gotten it to work yet.
But before I experiment further with $LST etc I want to understand how to use $SET and $GET but when I try the GET example http://www.proxomitron.info/45/help/Matc...s.html#GET It doesn't seem to work and says "No Match" in the testing window, if I remove the "$SET(LinkURL=>>\1<<)" part from the Match it does find a match, but it simply prints "The linked URL was: $GET(LinkURL)" I really wonder what I am doing wrong for some reason it refuses to SET any variable because if I "(\1)$SET(test=SetGetText)" to get the test variable it says No Match. Weird. I can get the SET example (above the GET with the Name=one two three) to work. |
|||
Dec. 23, 2012, 05:26 PM
(This post was last modified: Dec. 23, 2012 05:39 PM by JJoe.)
Post: #4
|
|||
|
|||
RE: How to use $LST(Count) in Replace ?
prxymouse Wrote:Weird. Yeah. Please, post the filter and code tested against. help Wrote:The $GET command can be used it in any replacement text to insert the current value of a global variable created by $SET (see above). This may even be within another $SET command. For example... So a filter like Code: [Patterns] tested against Code: <a href="http://www.proxomitron.info/45/help/Matching%20Commands.html#GET"> test window Wrote:The linked URL was: >>"http://www.proxomitron.info/45/help/Matching%20Commands.html#GET"<< After I remove "$SET(LinkURL=>>\1<<)", test window Wrote:The linked URL was: Case is important, must be $SET and $GET. |
|||
Dec. 23, 2012, 10:03 PM
Post: #5
|
|||
|
|||
RE: How to use $LST(Count) in Replace ?
To quote Homer Simpson: Doh!
When I started looking into this $LST(Count) I also tried various patches and versions, somehow it seems I forgot to switch back to the "good" version and I was running 4.3.0 which of course doesn't support SET/GET at all. Going back to 4.5 did the trick and unique IDs are now created and I can finish my project. Thank you very much and Happy Holidays! |
|||
« Next Oldest | Next Newest »
|