Match any digit from 0 to 9 using
To match any non-digit, use the upper-case
Use the dot (
.). This will match any character - a letter, digit or whitespace. To use the actual period scape with a backslash
Any alphanumeric character including the underscore. Use
\w. As you'll learn soon, this is the same as
Any non-alphanumeric character is
\W. This is helpful especially for matching punctuations.
\b matches the boundary between a word and a non-word character.
Place each character within square brackets.
Use the square brackets, just like above, with a hat (
^) inside of it.
There is a shortcut to specifying any range of letters or digits. Instead of writing
[abcdefghijklmnopqrstuvwxyz] we can just write write the range between two letter or numbers, separated by a dash (
The whitespace special character
\s will match single type of whitespace - a space, tab, newline or carriage return.
To specify any number of whitespace character use the
Any non-whitespace character will be
Algorithms are the procedures that software programs use to manipulate data structures. Besides clear and simple example programs, the author includes a workshop as a small demonstration program executable on a Web browser. The programs demonstrate in graphical form what data structures look like and how they operate.$ Check price
Command Line Kung Fu is packed with dozens of tips and practical real-world examples. You won't find theoretical examples in this book. The examples demonstrate how to solve actual problems. The tactics are easy to find, too. Each chapter covers a specific topic and groups related tips and examples together.$ Check price