You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-24Lines changed: 4 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# eloquent-regex
2
2
3
-
Eloquent Regex brings the simplicity and elegance of Laravel's Eloquent ORM to regular expressions. Designed for Laravel developers, this package offers a fluent, intuitive interface for building and executing regex patterns in your PHP applications. Streamline your pattern matching with an eloquent touch.
3
+
Eloquent Regex brings the simplicity and elegance to regular expressions. Designed for Laravel developers, this package offers a fluent, intuitive interface for building and executing regex patterns in your PHP applications.
- Default arguments and allow to use any other option beside args ✔️
30
-
- Add FilePath and DirectoryPath patterns for different OS ✔️
31
27
- Add needed options for new patterns:
32
-
- specialCharacters (min, max) ✔️
33
-
- onlyLowercase, onlyUppercase ✔️
34
-
- Is file (ends with .[format]) ✔️
35
-
- Is directory ✔️
36
-
- fileExists ✔️
37
-
- fileExtension: Specify certain file extensions (e.g., .txt, .pdf) ✔️
38
-
- specificCurrencies: Match only specific currency symbols.✔️
39
-
- relativePath, absolutePath: Specify if the path should be relative or absolute.✔️
40
-
- countryCode: Match phone numbers with specific country codes. ✔️
41
-
- specialCharacters: Allow or disallow special characters. ✔️
42
-
- containSpaces: Allow or disallow spaces. ✔️
43
-
- domainSpecific: Limit email addresses to specific domains.✔️
44
-
- domainExtension: Restrict to certain domain extensions.✔️
45
-
- protocolSpecific: Limit URLs to specific protocols (e.g., http, https). ✔️
46
-
- cardType: Restrict to specific card types (e.g., Visa, MasterCard). ✔️
47
-
- onlyAlphanumeric: Restrict to alphanumeric characters only. ✔️
48
-
- SpecificTags (HtmlTagPattern): To allow or restrict specific HTML tags.✔️
49
-
- RegexFlags: To allow users to set global regex flags (like case-insensitivity, multiline, etc.). ✔️ (_Added not as option, but in Builder and basePattern_)
50
28
- usernameLength: Set minimum and maximum length for the username part of the email.
51
29
- dateFormat, timeFormat: Specify the format of date and time (e.g., MM-DD-YYYY, HH:MM).
52
30
- Consider to register Patterns like options using key (name) => value (class) pairs (check performance) ✔️ (_No significant change before 50+ patterns_)
0 commit comments