logoalt Hacker News

glxxyzyesterday at 2:03 AM1 replyview on HN

[^X] means any character other than X, so [^X]* matches zero or more of any characters, so long as none of them are X.


Replies

Levitatingyesterday at 3:08 AM

Ah my bad! I did misinterpret [^X] as X or the line-start.