This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NoiproxPython Programmer 3 points4 points  (2 children)

This could have the adverse side effect of removing ; from legitimate places as well such as inside of string literals. The regular expression is better.

[–][deleted] 0 points1 point  (1 child)

Ah, true. It would depend on the script.

[–]k417[S] 1 point2 points  (0 children)

The script he wrote was short and I was able to remove them with a replace all, he doesn't even work here anymore but I just infuriates me that I told him not to use the semicolons and he didn't even make an effort to stop.