Regex tester
Pattern
Input
\usepackage{test}%COMMENT1

TEXT
%COMMENT2
TEXT

Value is 10\%, this should not be removed. %COMMENT3

begin{tikz}[
important 1,
%COMMENT4
important 2, %COMMENT5
]

TEXT
%COMMENT 6

TEXT

Table: value1&value2\\%COMMENT7
Options
Replacement
Click the context tab to see replacements.
7 matches found in about 0 milliseconds.
IndexPositionMatched StringReplacement
017%COMMENT1 empty string
136%COMMENT2
empty string
298%COMMENT3 empty string
3139%COMMENT4
empty string
4163%COMMENT5
empty string
5185%COMMENT 6 empty string
6229%COMMENT7empty string
\usepackage{test}
​
​TEXT
​TEXT
​
​Value is 10\%, this should not be removed. 
​
​begin{tikz}[
​important 1,
​important 2, ]
​
​TEXT
​
​
​TEXT
​
​Table: value1&value2\\
  1. \usepackage{test}


  2. TEXT
  3. TEXT

    Value is 10\%, this should not be removed.


  4. begin{tikz}[
    important 1,
  5. important 2,
  6. ]

    TEXT


  7. TEXT

    Table: value1&value2\\
  8. empty string