Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
Programmer Certification (OCPJP)
pattern matching
vini singh
Greenhorn
Posts: 18
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Pattern
p=Pattern.compile("\\d*");
Matcher m=p.matcher("ab34ef");
boolean b=false;
while(b=m.find())
{System.out.println(m.start() + m.group());
}
please explain i cant follow the output of this its
0
1
2 34
4
5
6
Henry Wong
author
Posts: 23956
142
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This question (from K&B) comes up very often here. Please search these forum for eariler discussions.
Henry
Books:
Java Threads, 3rd Edition
,
Jini in a Nutshell
, and
Java Gems (contributor)
Henry Wong
author
Posts: 23956
142
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
And BTW, the solution is also mentioned in the JavaRanch FAQ...
http://faq.javaranch.com/java/ScjpFaq#kb-regexp
Also, don't forget to read this, for future posts...
http://faq.javaranch.com/java/QuoteYourSources
Thanks,
Henry
Books:
Java Threads, 3rd Edition
,
Jini in a Nutshell
, and
Java Gems (contributor)
Every plan is a little cooler if you have a blimp. And a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Pattern matching problem
url-pattern
Identify these patterns...
What Design pattern is this?
Refactoring to Patterns - reader questions
More...