Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created August 7, 2016 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c76aaa76de29157a77c009bbbc475b06 to your computer and use it in GitHub Desktop.
Save anonymous/c76aaa76de29157a77c009bbbc475b06 to your computer and use it in GitHub Desktop.
str = '<img src="/fileadmin/MasterMSI/pict1.jpg" alt="lol" src="/fileadmin/MasterMSI/pict2.jpg"/>'
t = str.scan /fileadmin\/MasterMSI\/.*jpg/
puts t
# print => fileadmin/MasterMSI/pict1.jpg" alt="lol" src="/fileadmin/MasterMSI/pict2.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment