This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes Regular Expressions again Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regular Expressions again" Watch "Regular Expressions again" New topic

Regular Expressions again

Chinmay Bajikar
Ranch Hand

Joined: Dec 08, 2001
Posts: 159
Hi all,
Consider a string which can spread on min 1 to max 4 lines.
And each line must have min 1 to max 34 chars in it.
How would my regular expressions be in that case?
I have tried several combinations,but of no avail.
Thank in adv,

The strength of the Wolf is the pack & the strength of the pack is the wolf....Rudyard Kipling
subject: Regular Expressions again
It's not a secret anymore!