Updated RegEx for less false-positives re: RemNotes #456
cameronj86
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've gotten a lot of false-positive flashcards which are a headache to resolve. I was using the stock RegEx suggestion that uses two colons:
^(.*[^\n:]{1}):{2}([^\n:]{1}.*)
and I realize this can occasionally conflict with anki subdecks because Anki uses '::' to specifiy a subdeck (ie: TGT: MainDeck::SubDeck)I ran it through ChatGPT and got a better understanding for the parts. The small edit I did was changing to '2' to a '3' in the middle of the code:
^(.*[^\n:]{1}):{3}([^\n:]{1}.*)
What this means is that flashcards require three colons
:::
instead of two. That should cut down on the false-positives for meBeta Was this translation helpful? Give feedback.
All reactions