Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>perhaps something like this could help</p> <pre><code>use strict; use warnings; # the desired string my $to_match = 'com/puppycrawl/tools/checkstyle/'; my $pattern = qr/ # compile the regex -&gt; # start matching from the arrow -&gt; \s+ # which is followed by a space " # and then a " $to_match # finally the desired string /x; while (my $line = &lt;DATA&gt;) { chomp $line; next if $line =~ /^\s*$/; next unless $line =~ /$pattern/; print $line, "\n"; } __DATA__ "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/SeverityLevelCounter" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/FilterSet" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "java/util/Locale" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/CheckstyleException" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/PackageObjectFactory" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/DefaultContext" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/AutomaticBean" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/FileSetCheck" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/Filter" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "com/puppycrawl/tools/checkstyle/api/AuditListener" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "java/lang/StringBuilder" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "java/lang/Exception" "com/puppycrawl/tools/checkstyle/Checker" -&gt; "java/io/File" </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload