How can I extract some part of the title from notes title ? #346
Answered
by
radha1990kumari
radha1990kumari
asked this question in
Help
-
For example I have created a note named |
Beta Was this translation helpful? Give feedback.
Answered by
radha1990kumari
Aug 29, 2021
Replies: 1 comment
-
Heres the code <%*
let re = new RegExp('Lab-(\\d+)_.*');
var myString = tp.file.title;
var match = re.exec(myString);
var an="0"
if(match!=null)
an=match[1]
tR=an
%> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
radha1990kumari
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Heres the code