A previous dev liked to put single statements on the same lines as their relevant
if()s. I'm trying to find these lines now to fix them! I thought that the following regex would find them, but it isn't:
/\^\s*if\.*;\$ / Start search \^ Beginning of line \s* Any amount of whitespace if Beginning of the if() statement \.* Any amount of characters ; The end of the single statement \$ End of the line
So, where did I go wrong?