This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: Pattern * and ?
 
Similar Threads
Replacing the the last character of the given String
How do we do a Text Wrap
iterating with a scriptlet, can't get the values into js arr
Need help in regular expression
Java regular expression optimization - help needed