Skip to content

Commit 003a3ed

Browse files
committed
docs: improve code samples
1 parent 3dc1a09 commit 003a3ed

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

user_guide_src/source/libraries/file_collections.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ retainPattern(string $pattern, string $scope = null)
107107
Filters the current file list through the pattern (and optional scope), removing
108108
or retaining matched files.
109109

110-
``$pattern`` may be a complete regex (like ``'#[A-Za-z]+\.php#'``) or a pseudo-regex
111-
similar to ``glob()`` (like ``*.css``).
110+
``$pattern`` may be a complete regex (like ``'#\A[A-Za-z]+\.php\z#'``) or a
111+
pseudo-regex similar to ``glob()`` (like ``'*.css'``).
112112

113113
If a ``$scope`` is provided then only files in or under that directory will be
114114
considered (i.e. files outside of ``$scope`` are always retained). When no scope

0 commit comments

Comments
 (0)