There's a .py
script I use on my Macbook that I'm trying to fire up in Editorial. On my Macbook it returns every regex match, but in Editorial it's only returning the first match. I've never tried to run a Python script in Editorial. What am I missing? Here's the script as I'm running it in Editorial:
import editor
import console
import os
import re
console.clear()
text = (editor.get_text(), "r")
for highlights in text:
m = re.search("(?<=(==)).+(?=(==))", highlights)
if m: print str("=>"), str(m.group(0))
So grateful for any help!