Help with confiuration please?

Get help with installation and running here.

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

Post Reply
Glenn
Posts: 10
Joined: Wed Jan 23, 2013 8:54 pm

Help with confiuration please?

Post 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.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with confiuration please?

Post 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
|   

Glenn
Posts: 10
Joined: Wed Jan 23, 2013 8:54 pm

Re: Help with confiuration please?

Post 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.
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with confiuration please?

Post 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.
Glenn
Posts: 10
Joined: Wed Jan 23, 2013 8:54 pm

Re: Help with confiuration please?

Post 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.
Post Reply