Added \RTEX\Abstracts > RegexPatterns
This commit is contained in:
parent
48a89b65b8
commit
feb06cdb6b
1 changed files with 14 additions and 0 deletions
14
src/RTEX/Abstracts/RegexPatterns.php
Normal file
14
src/RTEX/Abstracts/RegexPatterns.php
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
namespace RTEX\Abstracts;
|
||||||
|
|
||||||
|
abstract class RegexPatterns
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Matches an array query value
|
||||||
|
*
|
||||||
|
* Matches: foo.bar, foo.0.bar, foo.bar.bazz.bar.0, 0.bar.bazz
|
||||||
|
* Does not match: foo..bar, foo.bar., foo..bar.bazz, foo-bar
|
||||||
|
*/
|
||||||
|
const ArrayQuery = '/^\d*(\.\w+)*$/';
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue