I am using self.view.find_all()
in the simple plug in I build.
I created the RegEx
as in https://regex101.com/r/iopdag/latest.
While in RegEx101 it captures exactly what I need it seems the Sublime Text engine returns the graoup.
Is there a way to extract only the digits as in the link?
As an example, assuming I have:
Some list...
Let's add [link][01].
We can add [another one][002].
Even [more][003]!
Here is my link.
[01]: 1.com
[002]: 2.com
[003]: 3.com
I apply self.view.find_all("^[\s]{0,2}\[([\d]*)\]:") # See https://regex101.com/r/iopdag/latest
and I get:
[01]:
[002]:
[003]:
While I expect:
01
002
003