anything that starts with () and []

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

Moderator: DataMystic Support

SLDSLD
Posts: 1
Joined: Tue Oct 31, 2006 10:21 pm

anything that starts with () and []

Postby SLDSLD » Tue Oct 31, 2006 10:26 pm

Hi!
I need to delete anything that starts with () and []

Part 7682 (U) [+Eng1.00_AGTP]
Part 4729 (J) [+Eng7_ARSP]

i need to obtain something like...

part 7682
Part 4729

I tried this but it doesn't work

[mustBeginWith( '[' or '(' )][longest 1 or more letters][mustEndWith( ']' or ')') ]

Thanks
Mike

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

Postby DataMystic Support » Wed Nov 01, 2006 9:47 am

Hi Mike,

As stated via the chat window, your pattern has a number of problems.

Code: Select all

[ ( '[' or '(' ), longest 1 or more letters, ( ']' or ')' ) ]


Clearly you're not just looking for letters either. You should be searching for

longest 1+ letters or digits or <+_.>
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


Return to “EasyPatterns Support”

Who is online

Users browsing this forum: No registered users and 3 guests