Page 1 of 1

Optional pattern?

Posted: Mon Nov 07, 2005 3:22 am
by sergeda
Help me please to design a pattern with optional subpatterns.
I have a number of identical string, but with different lenth. When I set number of subpatterns to the lenth of shortest string, I lost some data at the end of long lines. But when I add the number of subpatterns to get additional data in long string I lost small lines at all because it doesn't have so much number of subpatterns. How can I design an optional subpattern?

Posted: Tue Nov 08, 2005 10:42 pm
by DataMystic Support
Using EasyPatterns

[ longest optional( 3 to 8 letters ) ]

or similar.