Fix Bug: Url with # was filtered and anchor has no text was not matched by regex

Tests are added.