Team LiB
Previous Section Next Section

Index

P

Pattern class fields, 227–30
Pattern class methods, 230–36
pattern method, 62–63, 73, 232, 236
Pattern object, 55–70
and appendReplacement method, 98
CANON_EQ flag, 59
CASE_INSENSITIVE field, 57
COMMENTS flag, 57–58
compile method, 59–61
data validation with, 44–46
DOTALL flag, 58–59
finding duplicate words example, 38–40
flags method, 63–64
and lookingAt method, 96
matcher method, 63, 232
matches method, 64–65, 108
MULTILINE flag, 58
overview, 55–56
pattern method, 62–63
and reluctant qualifiers, 130
split method, 65–70
split(String regex, int limit) method, 112
split(String regex) method, 110
vs. String.matches method, 53
and String.replaceFirst method, 109
UNICODE_CASE flag, 59
UNIX_LINES flag, 57
patterns
compiling as needed, 160–62
creating, 5–7
defining, 2–3
reading, 8–9
storing externally, 146–60
not using normal property file, 147–48
not using XML, 148–52
overview, 146–47
using FileChannels and ByteBuffers, 152–60
PatternSyntaxException, 55, 65, 108, 109, 110, 112, 230–31
Perl, vs. Java's regex support, 51–52
phone numbers
extracting from files, 200–203
format confirmation, 22–25, 173–78
positive lookaheads, 130–32
positive lookbehinds, 134–37
Properties object, 147, 148, 152
pull technique, 5–6
push technique, 6–7

Team LiB
Previous Section Next Section