//------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// Generation parameters:
// - DataFilename: Patterns\Chinese\Chinese-URL.yaml
// - Language: Chinese
// - ClassName: URLDefinitions
//
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// ------------------------------------------------------------------------------
namespace Microsoft.Recognizers.Definitions.Chinese
{
using System;
using System.Collections.Generic;
public static class URLDefinitions
{
public const string ExtractionRestrictionRegex = @"(?<=\s|[\'""\(\[::]|^|[\u0800-\u9FFF])";
public static readonly string UrlPrefixRegex = $@"({ExtractionRestrictionRegex}{BaseURL.ProtocolRegex}?|{BaseURL.ProtocolRegex})[a-zA-Z0-9][-a-zA-Z0-9._]{{0,256}}(?[a-zA-Z]{{2,18}}){BaseURL.UrlSuffixRegex}";
public static readonly string IpUrlRegex = $@"(?({ExtractionRestrictionRegex}{BaseURL.ProtocolRegex}({BaseIp.Ipv4Regex}|localhost){BaseURL.UrlSuffixRegex}))";
}
}