Obsidian_to_Anki icon indicating copy to clipboard operation
Obsidian_to_Anki copied to clipboard

Regex docs not up to date for Obsidian extension 3.4.1

Open soundornoise opened this issue 4 years ago • 2 comments
trafficstars

Thank you for predicting my workflow and making the this tool!

I'm just getting set up and I hit a snag with the custom regexes. All fixed, on my end but I had a point of confusion in the docs.

  • The Regex pages still mention the Regex flag for Obsidian, which was removed with the last release
  • The Q/A format regex doesn't work with the Obsidian plugin. My guess is there's compiler a compiler difference between the languages. My non-multiline workaround is below
  • Took me a moment to realise it's Obsidian plugin or Python script. This is cool! Could be clearer on the readme

The regex I'm using is:

Q: (.+)\nA: (.+(?:\n(?:^.{1,3}$|^.{4}(?<!<!--).*))*)

Thanks for the effort you've put into this so far,

Michael

soundornoise avatar Feb 13 '21 20:02 soundornoise

I am setting this up but could not figure out where to paste the Regex as mentioned here https://github.com/Pseudonium/Obsidian_to_Anki/wiki/Question-answer-style

Can you please help?

siraj-samsudeen avatar Feb 18 '21 05:02 siraj-samsudeen

I tried clicking on the Note Type Table text (which did not seem clickable) and found the Basic - Regex and pasted the given Regex and found it was working.

siraj-samsudeen avatar Feb 18 '21 05:02 siraj-samsudeen