I'm having major time trouble trying to figure out how to get a global variable declared. I have a bit of code which I've successfully translated into a local variable (confined to one filter) which I then need to use somewhere else... How?
here's my code for an easy pattern search and replace
<P CLASS="art-head2">
[ capture( 1+ digits or letters or whitespace or '>' or <!"#$%&'()*+,-./\:;=?@[]^_`{}~|<> ) as 'globalvarname' ]</P>
Remember though - you may need to place this pattern inside a restriction - otherwise TP may only give you the value of the LAST occurrence of this variable. Remember - TextPipe acts like each filter processes the ENTIRE file before passing it on - unless you restrict to a small area of text.
<P CLASS="art-head2">
[ capture ( 1+ digits or letters or whitespace or <!"#$%&'()*+,-./\:;=?@[]^_`{}~|> ) as 'title1' ]</P>
with the action set to send matching text to sub filter.
In the subfilters, I am using EasyPattern search and replaces on what I believe to be the text found in that restrict filter, right? I am also trying to use the global variable @title1
The only thing I can get it to output when I use the @title1 variable in a subfilter is "1" I know that "1" is not the right answer. What am I doing wrong?