Help with confiuration please?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Help with confiuration please?

Postby Glenn » Wed Jan 23, 2013 9:20 pm

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:

[list=]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[/list]

Any help with this really appreciated,

Glenn.

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

Re: Help with confiuration please?

Postby DataMystic Support » Fri Jan 25, 2013 2:25 pm

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
|   

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

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

Re: Help with confiuration please?

Postby Glenn » Mon Jan 28, 2013 8:33 pm

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: 2164
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Help with confiuration please?

Postby DataMystic Support » Tue Jan 29, 2013 6:31 am

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

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

Re: Help with confiuration please?

Postby Glenn » Tue Jan 29, 2013 7:48 am

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.


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

Who is online

Users browsing this forum: No registered users and 9 guests