Skip to content

Regexp flags or \S,\s commands #61

@chrispahm

Description

@chrispahm

Hey there,
thanks for the awesome repo!
I'm trying to match a codeblock that looks like this

equation_(a,b,c,d)
    $ (some_condition
     $ (some_other_condition)) ..

My start regex to match the equation looks like this
(?s)equation_.*?\.\., so it's effectively using the single line flag. However, it looks like embedmd does not support this kind of flags.
My other thought was to substitute these flags by something like equation_[\S\s]*?\.\. , but then embedmd also throws an error saying \S was not escaped.

Does anyone have a recommendation for me?
Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions