Problem with filter

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
dynalt
Posts: 5
Joined: Thu Jan 01, 2015 7:52 am

Problem with filter

Post by dynalt »

Objective:
From data on clipboard, extract and gather:
{Q: ssdsdfsadf }
{Note: ssdsdfsadf }
{Todo: ssdsdfsadf }

Output is supposed to go to clipboard so I can paste the collected lines into one place. Result is empty.

So far I haven't created a single filter set that works the way it seems it should. It is frustrating.

Running on Windows 7

Results:

2015-07-04 17:52:15,Info,Convert from DOS EOL - 341 changes made - desperation, shouldn't need it on Windows
2015-07-04 17:52:15,Info,21 replace(s) performed for pattern match [\{Q: [^}]*\}]
2015-07-04 17:52:15,Info,0 replace(s) performed for pattern match [\{Note: [^}]*\}] - There are 2 occurrences
2015-07-04 17:52:15,Info,0 replace(s) performed for pattern match [\{Todo: [^}]*\}]
2015-07-04 17:52:15,Info,Output file [Clipboard] Size: 0 bytes - no matches shown!
2015-07-04 17:52:15,Info,Job finished. 1 of 1 files processed, 0 binary files skipped, 0 non-binary files skipped


TextPipe Single User Edition 9.9.1
-----------
Filter options
| [X] Log to file
| [ ] Append to logfile
| Log filename: %USERPROFILE%\textpipe.log
| Threshold 500
|
|--Input from clipboard
| [ ] Unicode input
|
|--Convert End of Lines - DOS to DOS
| [X] Remove bad EOL
|
|--Perl pattern [\{Q: [^}]*\}] with [$0\r\n]
| [ ] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [X] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [X] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [X] '.' matches newline
| [ ] UTF-8 Support
|
|--Perl pattern [\{Note: [^}]*\}] with [$0\r\n]
| [ ] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [X] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [X] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [X] '.' matches newline
| [ ] UTF-8 Support
|
|--Perl pattern [\{Todo: [^}]*\}] with [$0\r\n]
| [ ] Match case
| [ ] Whole words only
| [ ] Case sensitive replace
| [X] Prompt on replace
| [ ] Skip prompt if identical
| [ ] First only
| [X] Extract matches
| Maximum text buffer size 4096
| [ ] Maximum match (greedy)
| [ ] Allow comments
| [X] '.' matches newline
| [ ] UTF-8 Support
|
|--Comment...
| Click >>Here<< or press F1 for help
|
| TextPipe uses 'filters' to perform changes to each file. This 'filter list' is a sequence of changes, like 3 different search and replace operations.
|
| You can add filters from the Filter menu above - Convert, Add, Remove, Unicode, Replace, Special, Maps, Email, Restrict.
|
| For:
| * Search/replace - look in the Replace Menu
| * Unix/DOS/Mainframe End-of-line conversion - look in the Convert Menu
| * Extract email addresses - look in the Email Menu
| * Remove HTML codes - look in the Remove Menu
| * Join (merge) files together - look in the Special Menu
| * Split files apart - look in the Special Menu
| * Join files and then sort them - add a Special Menu\Merge filter followed by a Special Menu\Sort filter
|
| Just click the menu item to add the filter to the list.
|
| You'll find many examples just by clicking File\Open, or you can use File\Search to locate a filter.
|
| You can also ask questions in the TextPipe Discussion Forums -
| http://www.datamystic.com/forums
|
+--Output to clipboard
[ ] Unicode output


Files List
----------

Use the line below to remove common non-text files from website processing
.[ 'gif' or 'png' or 'jpg' or 'bmp' or 'avi' or 'ico' or 'mp3', lineEnd ]
Use the line below to remove common non-text folders from website processing
_vti


--------------------
Sample:

{Q: Can I change the Created Date on an Evernote note to put the TOC note at the top of the list?}

Can add hyperlinks to images or other elements on the slide.

{Q: Can the same links be used in the notes?}
nikolas1612
Posts: 22
Joined: Tue May 12, 2015 3:57 am

Re: Problem with filter

Post by nikolas1612 »

For some reason you try to extract 3 times in a row. Is that right? Thus the next filter works with the extraction result of the previous one.
To extract 3 variants at once you've got to place them inside one formula.
Look for the attachment
Attachments
test.rar
(776 Bytes) Downloaded 1319 times
dynalt
Posts: 5
Joined: Thu Jan 01, 2015 7:52 am

Re: Problem with filter

Post by dynalt »

Thanks, that is one more step toward understanding the model.

I don't yet have a handle on filters, sub filters, multiple passes through the file(s)etc.

Am I missing documentation?

Can I find samples somewhere?
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Problem with filter

Post by DataMystic Support »

There are 100+ sample files, and tutorials in the Help menu.

There is only ever one pass through the file.

Subfilters 'select' a chunk of text and isolate it for processing - the result of the subfiltered text then returns to the main stream.

Does that make sense?
Post Reply