Skip to Content
Table of Contents
Quick Take
Match a character sequence without regard to letter case
Match repeated sequences on the left and include nearby whitespace
Control how chomp functions include surrounding whitespace
Match repeated sequences on the right and include nearby whitespace
Match a whitespace-tolerant character sequence on the left
Combine optional and repeated sequence flags
Mark one sequence value as optional with a question mark
Match one or more repeated sequence values with an asterisk
Match a whitespace-tolerant character sequence on the right
Find the nearest non-whitespace character on the right
Treat a newline as a stopping point in either direction
Treat a raw non-breaking space as a stopping point