Removing lines with random numbers punctuaton and symbols

A discussion of how to use EasyPatterns, EasyPattern Helper and using the EasyPattern library.

Moderator: DataMystic Support

tahoar
Posts: 10
Joined: Tue Sep 23, 2008 10:35 am

Removing lines with random numbers punctuaton and symbols

Postby tahoar » Tue Sep 23, 2008 10:58 am

This is either very easy or very hard, but the solution escapes me right now. I have some lines in a text file with only numbers, punctuaton and symbols, such as this.

= .(.()*3); = (''); ( = 1)( /.("", "//72890/72890.", 60, 90, 728,","); .("", "//72890/__.", 60, 90, 728,":/../.","); .("", "//72890/__123.", 60, 90, 728,","); ) ( = 2)( .("", "//72890/__123.", 60, 90, 728,","); /.("", "//72890/72890.", 60, 90, 728,","); .("", "//72890/__.", 60, 90, 728,":/../.","); )( .("", "//72890/__.", 60, 90, 728,":/../.","); .("", "//72890/__123.", 60, 90, 728,","); /.("", "//72890/72890.", 60, 90, 728,","); ) .(); .(); ->

I want to remove these lines without affecting the numbers, punctuation and symbols on lines with alphabetic characters.

Thanks,
Tom

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

Re: Removing lines with random numbers punctuaton and symbols

Postby DataMystic Support » Wed Sep 24, 2008 8:14 am

Use an Remove lines matching EasyPattern like this:

Code: Select all

[1 or more digits or whitespace or <(),/._;> ]


You'll need to check that you have every punctutation characters specified inside the <>
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

tahoar
Posts: 10
Joined: Tue Sep 23, 2008 10:35 am

Re: Removing lines with random numbers punctuaton and symbols

Postby tahoar » Wed Sep 24, 2008 3:12 pm

Thank you!


Return to “EasyPatterns Support”

Who is online

Users browsing this forum: No registered users and 1 guest