function showExample(arg)
% 

%   Copyright 2017-2020 The MathWorks, Inc.

match = regexp(arg,'^(\w+)/(\w+)$','tokens','once');
if ~isempty(match)
    source = match{2};
    id = strrep(arg, '/', '-');

    htmlFile = com.mathworks.mlwidgets.help.examples.ExampleLinkRetriever.getDocUrlForExampleId(id);

    % Display the results.
    if ~isempty(htmlFile)
        web(char(htmlFile));
    else
        error(message('MATLAB:showExample:NotFound',source));
    end
    return;
end

error(matlab.internal.examples.em('InvalidArgument', arg));



