Download the PHP package chevere/regex without Composer
On this page you can find all versions of the php package chevere/regex. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chevere/regex
More information about chevere/regex
Files in chevere/regex
Package regex
Short Description Validated regular expression
License Apache-2.0
Homepage https://chevere.org
Informations about the package regex
Regex
Summary
Regex enables to work with a validated regular expression.
Installing
Regex is available through Packagist and the repository source is at chevere/regex.
Creating Regex
Create a Regex by passing the regular expression pattern.
Reading pattern
As-is
The __toString
method is used to access the pattern passed on instance creation.
Without delimiters
The noDelimiters
method is used to access to the regex pattern without delimiters.
Without delimiters and anchors
The noDelimitersNoAnchors
method is used to access to the regex pattern without delimiters and anchors.
Match
The match
method provides preg_match.
Match All
The matchAll
method provides preg_match_all.
Assert Match
The assertMatch
method asserts that the string matches. It throws Exceptions\NoMatchException
when failing to assert.
Assert Match All
The assertMatchAll
method asserts that the string matches all. It throws Exceptions\NoMatchException
when failing to assert.
Documentation
Documentation is available at chevere.org.
License
Copyright 2024 Rodolfo Berrios A.
Chevere is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.