Page 1 of 1

Help with confiuration please?

Posted: Wed Jan 23, 2013 9:20 pm
by Glenn
I purchased TextPipe quite a while back, couldn't get to grips with it and it has been sitting on my HD ever since - but today that changes :)

Can anybody help my configure TextPipe to do what I want it to please?

I would like to enter a list of phrases like so:

Code: Select all

big red apple
15 speakers
cheese *and* ham only $15
WOW!!!        look-here        @@fantastic@@
     get in!!   only 12 dollars
spades for snow        .
3.1" long stick
you are the winner.
cheese and ham only £15.
and after running it through TextPipe have the list look like:

Code: Select all

big red apples
15 speakers
cheese and ham only 15
wow look here fantastic
get in only 12 dollars
spades for snow
3.1 long stick
you are the winner
So TexPipe:
  • Removes all characters that aren't a-z A-Z 0-9
    Removes full stops UNLESS they are in a number (not at end)
    Removes multiple spaces so there is one space between each word
    Removes all duplicates after above have been performed
    Randomises list
Any help with this really appreciated,

Glenn.

Re: Help with confiuration please?

Posted: Fri Jan 25, 2013 2:25 pm
by DataMystic Support
Here are the steps:

Code: Select all

|
|--Perl pattern [[a-z0-9\.\r\n\- ]] with [$0]
|     [ ] Match case
|     [ ] Whole words only
|     [ ] Case sensitive replace
|     [ ] 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 [[ \t\-]+?] 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
|   
|--Remove blanks from Start of Line
|   
|--Remove blanks from End of Line
|   
|--Perl pattern [([^\d])\.([^\d])] with [$1$$2$]
|     [ ] 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
|   
|--Remove duplicate lines
|     [X] Ignore case
|     Start column 1
|     Length 4096
|     [ ] Include One
|     format: %d %s
|   
|--Randomize lines
|   


Re: Help with confiuration please?

Posted: Mon Jan 28, 2013 8:33 pm
by Glenn
Thank you very much for your reply.

I'm still a little unsure how to use the steps you've posted for me, but I'm trying to fumble through so hopefully it will become clearer once I play with it a little longer... :)

Thanks again,

Glenn.

Re: Help with confiuration please?

Posted: Tue Jan 29, 2013 6:31 am
by DataMystic Support
Hi Glenn,

The text above can't be pasted in, it is a textual representation of how these filters should look in TP, with all the settings included.

Re: Help with confiuration please?

Posted: Tue Jan 29, 2013 7:48 am
by Glenn
Ah, ok - I was wondering what to do with the list :)

I've done the tutorials and things are a little clearer so I'll see what I can do..

Thanks again.