MongoDB::BSON::Regexp
Regular expression type
- Provided by: libmongodb-perl (Version: 1.2.2-1)
- Report a bug
Regular expression type
version v1.2.2
my $qr = $regexp->try_compile;
Tries to compile the "pattern" and "flags" into a reference to a regular expression. If the pattern or flags can't be compiled, a "MongoDB::DecodingError" exception will be thrown.
SECURITY NOTE: Executing a regular expression can evaluate arbitrary code. You are strongly advised never to use untrusted input with "try_compile".
This software is Copyright (c) 2016 by MongoDB, Inc..
This is free software, licensed under:
The Apache License, Version 2.0, January 2004