Advertisement
Guest User

Untitled

a guest
Aug 7th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.24 KB | None | 0 0
  1.  
  2. str = '<img src="/fileadmin/MasterMSI/pict1.jpg" alt="lol" src="/fileadmin/MasterMSI/pict2.jpg"/>'
  3.  
  4. t = str.scan /fileadmin\/MasterMSI\/.*jpg/
  5. puts t
  6.  
  7. # print  => fileadmin/MasterMSI/pict1.jpg" alt="lol" src="/fileadmin/MasterMSI/pict2.jpg
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement