DataView query to extract part of a note

check out

there are multiple user scripts which can be used or with some work tweaked to suit your needs

or just

see this thread