I don't see how an IP (10.11.1.1 in the example) after 'host' is ever desired to be captured.
Exactly, yet I showed that your code does capture it.
In reply to Re^4: Match zero times in regex
by ikegami
in thread Match zero times in regex
by SomeNetworkGuy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |