regexp.compile() function
regexp.compile()
parses a string into a regular expression and returns a regexp type
that can be used to match against strings.
Function type signature
(v: string) => regexp
Parameters
v
(Required) String value to parse into a regular expression.
Examples
Convert a string into a regular expression
import "regexp"
regexp.compile(v: "abcd")// Returns the regexp object /abcd/
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.