Hello, I’m struggling with a regex and I need it to be dynamic , but I can’t get it in one shot,. I read [this] (http://docs.sublimetext.info/en/sublime-text-3/extensibility/snippets.html#substitutions) and here my “python3.sublime-build” file is it possible nested substitutions?.
{
“cmd”: ["/usr/bin/python3", “-u”, “-m”, “${file///}”]
, “working_dir”: “/home/bar/spam/regex/TFG/”
, “selector”: “source.python”
, “file_regex”: “file “(…*?)”, line ([0-9]+)”
}
now it does nothing, but I tried it all.
Basically I have, this string “/foo/bar/spam/regex/TFG/pacman/search/file.py” and I need this from TFG/ onward “pacman.search.file” so when I run the current file using that build (ctrl+b) actually it’ll be running something like “python3 -u -m pacman.search.file” instead of “python3 -u -m /foo/bar/spam/regex/TFG/pacman/search/file.py” keeping in mind the work directory is set in “.sublime-build”.
I really need help, regards