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 regex package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "regex package" Watch "regex package" New topic
Author

regex package

meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305


java Console \d\w "ab4 56_7ab"
pattern is \d\w
4 6 56
7 9 7a

I don't understand end(), API says it returns offset,what is it ? what is use of it ?


My one regret in life is that I am not someone else.
- Woody Allen
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Replace "offset" with "index in the string".


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

 
 
subject: regex package
 
Similar Threads
Regular expression confusion
SCJP 6 K&B book page no: 499
Regex problem
regex
Locating Data via Pattern Matching