jQuery in Action, 2nd edition
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


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: 19977
    
  25

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


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

Joined: Dec 05, 2012
Posts: 305

 
Consider Paul's rocket mass heater.
 
subject: regex package