aspose file tools*
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
Author

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,

Thanks,
Ananth Ram
marc weber
Sheriff

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
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Pattern * and ?