-
Notifications
You must be signed in to change notification settings - Fork 6
The regexp library
tim-hardcastle edited this page Jun 10, 2025
·
5 revisions
Note that the name of the library is indeed regexp and not regex, for consistency with Go's naming scheme.
Presently the regexp library contains functions with the following signatures:
match(pattern, text string) -> bool
Returns true if a match is found.
find(pattern, text string) -> string
Returns the first matching string.
findAll(pattern, text string) -> list
Returns a list of all the matching strings.
findAllIndex(pattern, text string) -> list
Returns a list of the bounds of all the matching strings, as pairs.
🧿 Pipefish is distributed under the MIT license. Please steal my code and ideas.
- Getting started
- Language basics
- The type system and built-in functions
- Functional Pipefish
- Encapsulation
- Imperative Pipefish
-
Imports and libraries
- The files library
- The fmt library
- The html library
- The math library
- The math/big library
- The math/cmplx library
- The math/rand library
- The path library
- The path/filepath library
- The reflect library
- The regexp library
- The sql library
- The strings library
- The terminal library
- The time library
- The unicode library
- Advanced Pipefish
- Developing in Pipefish
- Deployment
- Appendices