Purpose of Regex
If you're already Mr. Big Deal Regex Guy[1] and just want to know how Java does it, skip this section. Else, continue.
[1] I would like to take this opportunity to acknowledge our female readers within the programming community. Please note that throughout this book, for each reference to “x guy”, where x refers to some technology, let “guy” refer to a member of either gender. I hope that this is accepted usage here, as such use colloquially seems generally accepted. For example, “Hey, are you guys going to lunch with us?” spoken cheerfully to one's male and female coworkers, or, “Uh, when did you guys get back from Reno—I thought you weren't gunna be home til Sunday,” when referring directly to one's own parents.
A regular expression ...
Get Java Garage now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.