A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Pattern * and ?
Joined: Jan 18, 2001
Aug 30, 2010 13:25:33
I need to implement something like
. I have a
value available. I need to make sure the pattern entered by the user matches the String value. Something
like the below
String value = "quick brown fox jumps over the lazy dog";
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,
Joined: Aug 31, 2004
Aug 30, 2010 14:13:00
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."
I agree. Here's the link:
subject: Pattern * and ?
Java regular expression optimization - help needed
Replacing the the last character of the given String
Need help in regular expression
How do we do a Text Wrap
iterating with a scriptlet, can't get the values into js arr
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014