Skip to content

Is it possible to use more than 2 types of regex for a single type of card #626

Closed Answered by envico801
Bestboigill asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Bestboigill, yes, it can be done in 2 ways:

Option A:

You can clone the card type to which you want to assign a regex inside anki, then you would have to regenerate the table of note types inside the plugin in obsidian (so that it is updated) and there assign the different regex to each note type (which would be the same technically).


Option B:

As you mention, you could modify the regex to combine both regex expressions into one, for example:

Regex: /(Question selector 1 | Question selector 2) (Answer selector 1 | Answer selector 2)/g

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bestboigill
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants