You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish we were able to use regex as a means to replace, reformat and refactor text besides being able to search for specific character strings.
Feature motivation
Say there are bits of the shape n\d scattered all around within a text document (e.g. n1, n2, n17, ...). If I were to wish to format those as mermaid graph nodes, as in n1[`n~1~`] (which I've now come to realise Notable does not support, as it would seem markdown is not rendered within mermaid blocks ; perhaps because it is disabled inside of code blocks in general ? Unless I'm missing an update which hasn't been suggested to me for some reason), then the regex operation I would run would be similar to the following :
search : (n)(\d*)
replace : $1$2["`$1~$2~`"]
However it would seem referring to previously captured groups through $ notation is not supported. I wish it were.
The text was updated successfully, but these errors were encountered:
Feature description
I wish we were able to use regex as a means to replace, reformat and refactor text besides being able to search for specific character strings.
Feature motivation
Say there are bits of the shape
n\d
scattered all around within a text document (e.g.n1
,n2
,n17
, ...). If I were to wish to format those as mermaid graph nodes, as inn1[`n~1~`]
(which I've now come to realise Notable does not support, as it would seem markdown is not rendered within mermaid blocks ; perhaps because it is disabled inside of code blocks in general ? Unless I'm missing an update which hasn't been suggested to me for some reason), then the regex operation I would run would be similar to the following :search :
(n)(\d*)
replace :
$1$2["`$1~$2~`"]
However it would seem referring to previously captured groups through $ notation is not supported. I wish it were.
The text was updated successfully, but these errors were encountered: