mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
16 lines
483 B
C#
16 lines
483 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace Flow.Launcher.Plugin.Calculator;
|
|
|
|
internal static partial class MainRegexHelper
|
|
{
|
|
|
|
[GeneratedRegex(@"[\(\)\[\]]", RegexOptions.Compiled)]
|
|
public static partial Regex GetRegBrackets();
|
|
|
|
[GeneratedRegex(@"-?[\d\.,]+", RegexOptions.Compiled)]
|
|
public static partial Regex GetNumberRegex();
|
|
|
|
[GeneratedRegex(@"\B(?=(\d{3})+(?!\d))", RegexOptions.Compiled)]
|
|
public static partial Regex GetThousandGroupRegex();
|
|
}
|