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()'
|
|
|
|
----
|
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
|
|
|
|
'''
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
|
|
|
== Message
|
|
|
|
|
|
|
|
Remove this empty group.
|
|
|
|
|
|
|
|
== Highlighting
|
|
|
|
|
|
|
|
The empty group should be highlighted.
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|