Next: Macros for doing arithmetic, Previous: Diverting and undiverting output, Up: GNU M4 [Contents][Index]

## 11 Macros for text handling ¶

There are a number of builtins in `m4` for manipulating text in various ways, extracting substrings, searching, substituting, and so on.

- Calculating length of strings
- Searching for substrings
- Searching for regular expressions
- Extracting substrings
- Translating characters
- Substituting text by regular expression
- Formatting strings (printf-like)