Reputation: 41
I have list of SHA1s and i get the results required using the steps below, but was wondering if i could achieve the same thing with a single operation (currently using Notepad++)
99972099c60a6481837419c13959842bf7f7f037
Find What:([0-9a-f]{40})
Replace with: \1.source
99972099c60a6481837419c13959842bf7f7f037.source
Find What: (^[0-9a-f]{6})
Replace with: /\1/\1
/999720/99972099c60a6481837419c13959842bf7f7f037.source
Thanks
Mark
Upvotes: 0
Views: 1010
Reputation: 1537
Find: ([0-9a-f]{6})([0-9a-f]{34})
Replace: /\1/\1\2.source
Regex101 Demo (and explanation)
Upvotes: 2