This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 19656
    
  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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: regex package
 
Similar Threads
Regular expression confusion
SCJP 6 K&B book page no: 499
Regex problem
regex
Locating Data via Pattern Matching