diff --git a/bleach/linkifier.py b/bleach/linkifier.py
index 54a432e..8fcefb2 100644
--- a/bleach/linkifier.py
+++ b/bleach/linkifier.py
@@ -45,8 +45,8 @@ def build_url_re(tlds=TLDS, protocols=html5lib_shim.allowed_protocols):
         r"""\(*  # Match any opening parentheses.
         \b(?<![@.])(?:(?:{0}):/{{0,3}}(?:(?:\w+:)?\w+@)?)?  # http://
         ([\w-]+\.)+(?:{1})(?:\:[0-9]+)?(?!\.\w)\b   # xx.yy.tld(:##)?
-        (?:[/?][^\s\{{\}}\|\\\^\[\]`<>"]*)?
-            # /path/zz (excluding "unsafe" chars from RFC 1738,
+        (?:[/?][^\s\{{\}}\|\\\^`<>"]*)?
+            # /path/zz (excluding "unsafe" chars from RFC 3986,
             # except for # and ~, which happen in practice)
         """.format(
             "|".join(sorted(protocols)), "|".join(sorted(tlds))

diff --git a/tests/test_linkify.py b/tests/test_linkify.py
index 4cc01a6..0920c47 100644
--- a/tests/test_linkify.py
+++ b/tests/test_linkify.py
@@ -300,6 +300,14 @@ def test_link_ftp():
     )
 
 
+def test_link_with_qs_with_array():
+    """Test that urls pick up [] in querystring"""
+    assert linkify("http://test.com?array[]=1&params_in[]=2") == (
+        '<a href="http://test.com?array[]=1&amp;params_in[]=2" '
+        + 'rel="nofollow">http://test.com?array[]=1&amp;params_in[]=2</a>'
+    )
+
+
 def test_link_query():
     assert (
         linkify("http://xx.com/?test=win")

Linkify incorrectly parses array arguments
Hi.
Library version up to 3.1.0 incorrectly parses array and object url parameters:
```python
from bleach import DEFAULT_CALLBACKS, Linker
text= 'http://test.com?array[]=1&params_in[]=2'
linker = Linker(url_re=linkifier.URL_RE, callbacks=DEFAULT_CALLBACKS, skip_tags=None, parse_email=False)
print(linker.linkify(text))
# prints: <a href="http://test.com?array" rel="nofollow">http://test.com?array</a>[]=1¶ms_in[]=2
```
As you see, url is split by [], loosing part of the link.
tests/test_linkify.py::test_link_with_qs_with_array
tests/test_linkify.py::test_empty tests/test_linkify.py::test_simple_link tests/test_linkify.py::test_trailing_slash tests/test_linkify.py::test_mangle_link tests/test_linkify.py::test_mangle_text tests/test_linkify.py::test_email_link[a tests/test_linkify.py::test_email_link[aussie tests/test_linkify.py::test_email_link[email tests/test_linkify.py::test_email_link[<br>jinkyun@example.com-True-<br><a tests/test_linkify.py::test_email_link[mailto tests/test_linkify.py::test_email_link["\\\n"@opa.ru-True-"\\\n"@opa.ru] tests/test_linkify.py::test_email_link[gorby%kremvax@example.com-True-<a tests/test_linkify.py::test_email_link[unlikely?address@example.com-True-<a tests/test_linkify.py::test_email_link_escaping["james"@example.com-<a tests/test_linkify.py::test_email_link_escaping["j'ames"@example.com-<a tests/test_linkify.py::test_email_link_escaping["ja>mes"@example.com-<a tests/test_linkify.py::test_prevent_links[callback0-a tests/test_linkify.py::test_prevent_links[callback1-a tests/test_linkify.py::test_prevent_links[callback2-a tests/test_linkify.py::test_prevent_links[callback3-a tests/test_linkify.py::test_prevent_links[callback4-a tests/test_linkify.py::test_prevent_links[callback5-a tests/test_linkify.py::test_set_attrs tests/test_linkify.py::test_only_proto_links tests/test_linkify.py::test_stop_email tests/test_linkify.py::test_tlds[example.com-<a tests/test_linkify.py::test_tlds[example.co-<a tests/test_linkify.py::test_tlds[example.co.uk-<a tests/test_linkify.py::test_tlds[example.edu-<a tests/test_linkify.py::test_tlds[example.xxx-<a tests/test_linkify.py::test_tlds[bit.ly/fun-<a tests/test_linkify.py::test_tlds[example.yyy-example.yyy] tests/test_linkify.py::test_tlds[brie-brie] tests/test_linkify.py::test_escaping[< tests/test_linkify.py::test_escaping[<U tests/test_linkify.py::test_nofollow_off tests/test_linkify.py::test_link_in_html tests/test_linkify.py::test_links_https tests/test_linkify.py::test_add_rel_nofollow tests/test_linkify.py::test_url_with_path tests/test_linkify.py::test_link_ftp tests/test_linkify.py::test_link_query tests/test_linkify.py::test_link_fragment tests/test_linkify.py::test_link_entities_in_qs tests/test_linkify.py::test_link_entities_in_characters_token tests/test_linkify.py::test_link_entities_in_a_tag tests/test_linkify.py::test_escaped_html tests/test_linkify.py::test_link_http_complete tests/test_linkify.py::test_non_url tests/test_linkify.py::test_javascript_url tests/test_linkify.py::test_unsafe_url tests/test_linkify.py::test_skip_tags tests/test_linkify.py::test_libgl tests/test_linkify.py::test_end_of_sentence[example.com-.] tests/test_linkify.py::test_end_of_sentence[example.com-...] tests/test_linkify.py::test_end_of_sentence[ex.com/foo-.] tests/test_linkify.py::test_end_of_sentence[ex.com/foo-....] tests/test_linkify.py::test_end_of_clause tests/test_linkify.py::test_sarcasm tests/test_linkify.py::test_wrapping_parentheses[(example.com)-expected_parts0] tests/test_linkify.py::test_wrapping_parentheses[(example.com/)-expected_parts1] tests/test_linkify.py::test_wrapping_parentheses[(example.com/foo)-expected_parts2] tests/test_linkify.py::test_wrapping_parentheses[(((example.com/))))-expected_parts3] tests/test_linkify.py::test_wrapping_parentheses[example.com/))-expected_parts4] tests/test_linkify.py::test_wrapping_parentheses[(foo tests/test_linkify.py::test_wrapping_parentheses[http://en.wikipedia.org/wiki/Test_(assessment)-expected_parts7] tests/test_linkify.py::test_wrapping_parentheses[(http://en.wikipedia.org/wiki/Test_(assessment))-expected_parts8] tests/test_linkify.py::test_wrapping_parentheses[((http://en.wikipedia.org/wiki/Test_(assessment))-expected_parts9] tests/test_linkify.py::test_wrapping_parentheses[(http://en.wikipedia.org/wiki/Test_(assessment)))-expected_parts10] tests/test_linkify.py::test_wrapping_parentheses[(http://en.wikipedia.org/wiki/)Test_(assessment-expected_parts11] tests/test_linkify.py::test_wrapping_parentheses[hello tests/test_linkify.py::test_parentheses_with_removing tests/test_linkify.py::test_ports[http://foo.com:8000-http://foo.com:8000-] tests/test_linkify.py::test_ports[http://foo.com:8000/-http://foo.com:8000/-] tests/test_linkify.py::test_ports[http://bar.com:xkcd-http://bar.com-:xkcd] tests/test_linkify.py::test_ports[http://foo.com:81/bar-http://foo.com:81/bar-] tests/test_linkify.py::test_ports[http://foo.com:-http://foo.com-:] tests/test_linkify.py::test_ports[http://foo.com:\u0663\u0669/-http://foo.com-:\u0663\u0669/] tests/test_linkify.py::test_ports[http://foo.com:\U0001d7e0\U0001d7d8/-http://foo.com-:\U0001d7e0\U0001d7d8/] tests/test_linkify.py::test_ignore_bad_protocols tests/test_linkify.py::test_link_emails_and_urls tests/test_linkify.py::test_links_case_insensitive tests/test_linkify.py::test_elements_inside_links tests/test_linkify.py::test_drop_link_tags tests/test_linkify.py::test_naughty_unescaping[&lt;br&gt;-&lt;br&gt;] tests/test_linkify.py::test_naughty_unescaping[&lt;br&gt; tests/test_linkify.py::test_hang tests/test_linkify.py::test_hyphen_in_mail tests/test_linkify.py::test_url_re_arg tests/test_linkify.py::test_email_re_arg tests/test_linkify.py::test_recognized_tags_arg tests/test_linkify.py::test_linkify_idempotent[<span>text tests/test_linkify.py::test_linkify_idempotent[a tests/test_linkify.py::test_linkify_idempotent[link tests/test_linkify.py::test_linkify_idempotent[text<em>] tests/test_linkify.py::test_linkify_idempotent[jim tests/test_linkify.py::test_linkify_idempotent[<a tests/test_linkify.py::TestLinkify::test_no_href_links tests/test_linkify.py::TestLinkify::test_rel_already_there tests/test_linkify.py::TestLinkify::test_only_text_is_linkified tests/test_linkify.py::test_linkify_filter[abc-abc] tests/test_linkify.py::test_linkify_filter[example.com-<a tests/test_linkify.py::test_linkify_filter[http://example.com?b=1&c=2-<a tests/test_linkify.py::test_linkify_filter[http://example.com?b=1&amp;c=2-<a tests/test_linkify.py::test_linkify_filter[link: