Plain text contains a custom tag that named <code>. Inside a tag there is plain text or XML.
For example:
bla-bla-bla
<code lang="cs">
public static void main(){}
</code>
bla-bla-bla
or
bla-bla-bla
<code lang="xaml">
<StackPanel>
<Button Content="Click Me"/>
</StackPanel>
</code>
bla-bla-bla
I need to find all <code> tags with content using regular expression.
This worked for me (you need to turn on Singleline for that to work):