We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40aed4e commit b340925Copy full SHA for b340925
VerbalExpressions.php
@@ -119,6 +119,24 @@ function anythingBut( $value ) {
119
$this->add("([^". $this->sanitize($value) ."]*)");
120
return $this;
121
}
122
+
123
+ /**
124
+ * Accept any non-empty string
125
+ */
126
+ function something() {
127
+ $this->add("(.+)");
128
+ return $this;
129
+ }
130
131
132
+ * Anything non-empty except for these chars
133
+ * @param string $value The unaccepted chars
134
135
+ function somethingBut( $value ) {
136
+ $this->add("([^". $this->sanitize($value) ."]+)");
137
138
139
140
/**
141
* Shorthand for preg_replace()
142
* @param string $source the string that will be affected(subject)
0 commit comments