public static Hyperlink create(final String value, final int pos) {
        Hyperlink hyperlink = null;

        int index = pos;
        final String text = nextToken(value, index, '[', ']');
        if (text != null) {
            index = index + text.length() + 2;
            final String href = nextToken(value, index, '(', ')');
            if (href != null) {
                index = index + href.length() + 2;
                final String type = nextToken(value, index, '{', '}');
                hyperlink = new Builder().text(text).href(href).type(type).build();
            }
        }

        return hyperlink;
    }
This class is used to detect table cell values that contain URL's to be turned into hyperlinks.
<p>
[:text](http://some-url/:id){:hyperlinkTarget}
stroom-core-client-widget/src/main/java/stroom/hyperlink/client/Hyperlink.java