Created
September 14, 2020 16:03
-
-
Save Haumer/39fa229fe2a359d9c72414b264df9402 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| something.gsub(/src=(?<url>[^\s]+)/, 'src="" data-src=\k<url> class="lozad"') | |
| # here \k<something> where something is the name of the group in your regex. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment