Search using saved global variable

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

kcammarata
Posts: 1
Joined: Thu Jul 16, 2009 8:07 am

Search using saved global variable

Postby kcammarata » Thu Jul 16, 2009 8:15 am

Is it possible to save a text string to a global variable, then use the contents of the global variable as a search criteria in a later search? I have attempted it, but cannot get it to work.

|--Perl pattern [F.*Me] with []
| | [ ] Match case
| | [ ] Whole words only
| | [ ] Case sensitive replace
| | [ ] Prompt on replace
| | [ ] Skip prompt if identical
| | [ ] First only
| | [ ] Extract matches
| | Maximum text buffer size 4096
| | [ ] Maximum match (greedy)
| | [ ] Allow comments
| | [X] '.' matches newline
| | [ ] UTF-8 Support
| |
| +--Capture to variable @foundText
| Reset: 1
|
|--Perl pattern [1@foundText1] with [$0 has been found]
| [ ] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [X] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [ ] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [X] '.' matches newline
| [ ] UTF-8 Support
|
+--Output to file(s)
[ ] Only update date on changed files
[ ] Append mode
[ ] Change extension to: .txt
[ ] Open output file
Only output modified files Backup mode

User avatar
DataMystic Support
Site Admin
Posts: 2164
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Search using saved global variable

Postby DataMystic Support » Thu Jul 16, 2009 4:55 pm

Sorry - you can't do this. TP insists that the pattern be specified up-front to make it a fast as possible.

We might consider doing this for a future release though
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest