2022-02-02 14:02:12 +01:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,php]
|
2022-02-02 14:02:12 +01:00
|
|
|
----
|
|
|
|
"/foo()/" // Noncompliant, will match only 'foo'
|
|
|
|
----
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,php]
|
2022-02-02 14:02:12 +01:00
|
|
|
----
|
|
|
|
"/foo\(\)/" // Matches 'foo()'
|
|
|
|
----
|
|
|
|
|
2022-03-29 09:47:35 +02:00
|
|
|
include::../implementation.adoc[]
|