Recently I am writing a markdown Syntax Parsing program. I have encountered the following problems. For example, I want to increase the font syntax by * ABC *, that is, it contains two characters on the outer side of the character *. I can use regular expressions to write expressions easily. However, if I want to increase the number of characters that contain the * character, I want to use... recently I am writing a markdown Syntax Parsing program. I have encountered the following problems. For example, I want to increase the font Syntax:
* ABC *That is to say, there are two
*. I can use regular expressions to write expressions easily.
However, if I want to add more words*This character, I want to use\Escape this match with a backslash, just like this* AB \ * C *. I only need to match the characters that are not marked as escaped by the backslash on the outermost side. How can I use regular expressions?
Reply content:
Recently I am writing a markdown Syntax Parsing program. I have encountered the following problems. For example, I want to increase the font Syntax:* ABC *That is to say, there are two*. I can use regular expressions to write expressions easily.
However, if I want to add more words*This character, I want to use\Escape this match with a backslash, just like this* AB \ * C *. I only need to match the characters that are not marked as escaped by the backslash on the outermost side. How can I use regular expressions?
* AB \ * C * [1] => AB \ * C)
I don't know if this is the meaning. The matching must start with * rather \ *.