File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes ZeroOrMoreQuantifier Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "ZeroOrMoreQuantifier" Watch "ZeroOrMoreQuantifier" New topic
Author

ZeroOrMoreQuantifier

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 226


0 aa
2
3 a
4
5 aa
7
8 a
9
10
11


I'm wondering!! What is 11th position ?


OCAJP
Matthew Brown
Bartender

Joined: Apr 06, 2010
Posts: 3860
    
    1

11th position is after the final character of the string. If you've got a regular expression that can be matched by an empty string then it will find a match at the end as well.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: ZeroOrMoreQuantifier
 
Similar Threads
server side validation
Java regexp
Map Problem
instanceof key word
why hash map contains null