Team LiB
Previous Section Next Section

Index

J

Java
integrating with regular expressions, 21–41
confirming addresses example, 33–37
confirming dates example, 27–30
confirming phone number formats example, 22–25
confirming zip codes example, 25–27
finding duplicate words example, 38–41
overview, 21–22
vs. Perl, 51–52
java.util.Properties, 173
Java.util.regex object model, 55–115
Matcher object
appendReplacement method, 98–102
appendTail method, 103
and back references, 123
date validation with, 44–46
end method, 81–86, 83–86
find method, 93–96
and finding duplicate words, 38–40
group method, 86–87
groupCount method, 90–91
and groups, 71–72
lookingAt method, 96–98
matcher method, 63
matches method, 91–92
overview, 70–71
pattern method, 73
and Pattern.matches method, 64–65
replaceAll method, 103–5
replaceFirst method, 105–6
reset method, 73–76
start method, 77–81
vs. String.matches method, 53
and String.replaceAll method, 109
and String.replaceFirst method, 108
overview, 55
Pattern object, 55–70
CANON_EQ flag, 59
CASE_INSENSITIVE field, 57
COMMENTS flag, 57–58
compile method, 59–61
DOTALL flag, 58–59
flags method, 63–64
matcher method, 63
matches method, 64–65
MULTILINE flag, 58
overview, 55–56
pattern method, 62–63
split method, 65–70
UNICODE_CASE flag, 59
UNIX_LINES flag, 57
String object, 106–12
delimiting strings, 106–7
matches method, 107–8
replaceFirst method, 108–9
split method, 109–12

Team LiB
Previous Section Next Section