File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Pattern * and ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Pattern * and ?" Watch "Pattern * and ?" New topic

Pattern * and ?

Ananth Ram
Ranch Hand

Joined: Jan 18, 2001
Posts: 99

Hi All,

I need to implement something like Pattern. I have a String value available. I need to make sure the pattern entered by the user matches the String value. Something
like the below

When user provides String Pattern = "jum*";

then the output should be starting from jump. ==> jumps over the lazy dog

Apart from the above pattern, the user can also enter a regex expression.

I need some pointers on where to start on implementing the same. Does the java.util. Regex/Pattern helps me.

Thanks for all help,

Ananth Ram
marc weber

Joined: Aug 31, 2004
Posts: 11343

See Java Tutorials - Regular Expressions.

"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
I agree. Here's the link:
subject: Pattern * and ?
It's not a secret anymore!