2023-05-03 11:06:20 +02:00
|
|
|
== Why is this an issue?
|
|
|
|
|
2022-02-02 14:02:12 +01:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Noncompliant code example
|
2022-02-02 14:02:12 +01:00
|
|
|
|
2022-02-04 17:28:24 +01:00
|
|
|
[source,php]
|
2022-02-02 14:02:12 +01:00
|
|
|
----
|
|
|
|
"/foo()/" // Noncompliant, will match only 'foo'
|
|
|
|
----
|
|
|
|
|
2023-05-03 11:06:20 +02:00
|
|
|
=== Compliant solution
|
2022-02-02 14:02:12 +01:00
|
|
|
|
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[]
|