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*

3
  • The url in the first comment above points to the whole svg file, I want to replace the string as detailed in the original question, so where it says link I want to change it to "page-002-img1.jpg?q=80" - but two variables need to be passed in to make sure the string matches exactly as above. This is to make the svg render the background image locally and not fetch it from the website above. Commented May 4, 2018 at 22:07
  • I have modified the expression to not expect the URL to be the entire input line as the question initially implied. Commented May 4, 2018 at 22:13
  • Thanks, I apologise if it wasn't that clear. Commented May 4, 2018 at 22:31