Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

13
  • \$\begingroup\$ @Matt It worked on all the comics I tried. It only matches images with alt-text so. \$\endgroup\$ Commented Oct 27, 2016 at 17:33
  • \$\begingroup\$ You may not need the quotes around the src attribute. \$\endgroup\$ Commented Oct 27, 2016 at 18:24
  • \$\begingroup\$ I don't think you need the ? in the first match group. You could use -p and $_=$2 instead of print$2, but then the title text is printed only after feh is closed. Not sure if that's valid. \$\endgroup\$ Commented Oct 27, 2016 at 19:17
  • \$\begingroup\$ @m-chrzan Yeah looks like I can drop the reluctant quantifier there, thanks. I thought about using -p but wasn't sure how the OP would feel about it. \$\endgroup\$ Commented Oct 27, 2016 at 23:11
  • \$\begingroup\$ @ConorO'Brien Unfortunately Randall observes good HTML coding practices... and capturing the quotes doesn't then quote the arguments due to how backticks work in Perl. \$\endgroup\$ Commented Oct 27, 2016 at 23:12