I want to highlight every [
in any color so i can see the hidden message here:
[###[#[[[#[###[#[[[#[[[#[###[#[[[
[###[##[##[[##[#[####[##[[##[##[#
[######[##[#[#[#[[[##[##[#[#[##[#
[######[##[##[[#[####[##[##[[##[#
[[[###[[[#[###[#[###[[[#[###[#[[[
Best Answer
You want to match
[
but, ingrep
,[
is a regex active character. The solution is to escape it with a backslash so thatgrep
will treat it as a plain simple literal character:The output looks like: