Search for regex

  1. Search 7.x for regex
  2. Search 8.9.x for regex
  3. Search 10.3.x for regex
  4. Search 11.x for regex
  5. Search main for regex
  6. Other projects
Title Object type File name Summary
Combine::opRegex function core/modules/views/src/Plugin/views/filter/Combine.php Filters by a regular expression.
Connection::sqlFunctionRegexp function core/modules/sqlite/src/Driver/Database/sqlite/Connection.php SQLite compatibility implementation for the REGEXP SQL operator.
FileSystemInterface::INSECURE_EXTENSION_REGEX constant core/lib/Drupal/Core/File/FileSystemInterface.php The regex pattern used when checking for insecure file types.
FileUploadResource::REQUEST_HEADER_FILENAME_REGEX constant core/modules/file/src/Plugin/rest/resource/FileUploadResource.php The regex used to extract the filename from the content disposition header.
FILE_INSECURE_EXTENSION_REGEX constant core/modules/file/file.module The regex pattern used when checking for insecure file types.
FrontMatter::REGEXP constant core/lib/Drupal/Component/FrontMatter/FrontMatter.php The regular expression used to extract the YAML front matter content.
HTMLRestrictions::getRegExForWildCardAttributeName function core/modules/ckeditor5/src/HTMLRestrictions.php Computes a regular expression for matching a wildcard attribute name.
JsonApiSpec::MEMBER_NAME_REGEXP constant core/modules/jsonapi/src/JsonApiSpec.php Regular expression to check the validity of a member name.
LanguageInterface::VALID_LANGCODE_REGEX constant core/lib/Drupal/Core/Language/LanguageInterface.php A regex for validating language codes according to W3C specifications.
MailFormatHelper::$regexp property core/lib/Drupal/Core/Mail/MailFormatHelper.php Quoted regex expression based on base path.
NumericFilter::opRegex function core/modules/views/src/Plugin/views/filter/NumericFilter.php Filters by a regular expression.
PathMatcher::$regexes property core/lib/Drupal/Core/Path/PathMatcher.php The cache of regular expressions.
PhpUnitWarningsTest::testExpectExceptionMessageRegExp function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests expectExceptionMessageRegExp.
RegexConstraint class core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php Regex constraint.
RegexConstraint.php file core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php
RegexConstraint::$message property core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php
RegexConstraint::validatedBy function core/lib/Drupal/Core/Validation/Plugin/Validation/Constraint/RegexConstraint.php
RegexDirectoryIterator class core/lib/Drupal/Component/FileSystem/RegexDirectoryIterator.php Iterates over files whose names match a regular expression in a directory.
RegexDirectoryIterator.php file core/lib/Drupal/Component/FileSystem/RegexDirectoryIterator.php
RegexDirectoryIterator::$regex property core/lib/Drupal/Component/FileSystem/RegexDirectoryIterator.php The regular expression to match.
RegexDirectoryIterator::accept function core/lib/Drupal/Component/FileSystem/RegexDirectoryIterator.php Implements \FilterIterator::accept().
RegexDirectoryIterator::__construct function core/lib/Drupal/Component/FileSystem/RegexDirectoryIterator.php RegexDirectoryIterator constructor.
RegexDirectoryIteratorTest class core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php @coversDefaultClass \Drupal\Component\FileSystem\RegexDirectoryIterator[[api-linebreak]]
@group FileSystem
RegexDirectoryIteratorTest.php file core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php
RegexDirectoryIteratorTest::providerTestRegexDirectoryIterator function core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php Provider for self::testRegexDirectoryIterator().
RegexDirectoryIteratorTest::testRegexDirectoryIterator function core/tests/Drupal/Tests/Component/FileSystem/RegexDirectoryIteratorTest.php @covers ::accept[[api-linebreak]]
@dataProvider providerTestRegexDirectoryIterator
SourceEditingPreventSelfXssConstraintValidator::getRegExForWildCardAttributeName function core/modules/ckeditor5/src/Plugin/Validation/Constraint/SourceEditingPreventSelfXssConstraintValidator.php Computes a regular expression for matching a wildcard attribute name.
StringFilter::opRegex function core/modules/views/src/Plugin/views/filter/StringFilter.php Filters by a regular expression.
TemporaryJsonapiFileFieldUploader::REQUEST_HEADER_FILENAME_REGEX constant core/modules/jsonapi/src/Controller/TemporaryJsonapiFileFieldUploader.php The regex used to extract the filename from the content disposition header.
WorkflowTypeBase::VALID_ID_REGEX constant core/modules/workflows/src/Plugin/WorkflowTypeBase.php A regex for matching a valid state/transition machine name.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.