Because this:
/;FTP*:*/
...says match any line that has a ; followed by FT followed by P or not P followed up with a :. Essentially, you're being too greedy.
Try something like:
/;FTP.*?:.*/
...which says match ;FTP anywhere in the line, followed by anything non-greedily (.*?) up until it finds a : (you have whitespace that the .*? registers), followed by anything, greedy.
In reply to Re: string matching
by stevieb
in thread string matching
by amitvalia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |