Skip to content

Possibility to replace quotation marks or brackets #1915

Closed Locked Answered by smeech
dflvunoooooo asked this question in Q&A
Discussion options

You must be logged in to vote

Some people prefer to use quote-marks. I feel they make the code less readable (and would rewrite the docs accordingly!), and they mean that "\"s and other characters need to be escaped, which makes regex testing more difficult.

  - trigger: '""'
    replace: '"$|$"'

and

  - trigger: ()
    replace: ($|$)

will do what you need, I think.

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@dflvunoooooo
Comment options

Comment options

You must be logged in to vote
8 replies
@dflvunoooooo
Comment options

@smeech
Comment options

@dflvunoooooo
Comment options

@dflvunoooooo
Comment options

@dflvunoooooo
Comment options

Answer selected by dflvunoooooo
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