mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 07:38:33 -06:00
21 lines
367 B
C#
21 lines
367 B
C#
using System.Text.RegularExpressions;
|
|
|
|
namespace LocalModels;
|
|
|
|
public static class MarkdownUtils
|
|
{
|
|
public static string ExtractLabelValue(string input, string label)
|
|
{
|
|
string pattern = $@"{label}: (.*?)\n";
|
|
Match match = Regex.Match(input, pattern);
|
|
|
|
if (match.Success)
|
|
{
|
|
return match.Groups[1].Value;
|
|
}
|
|
|
|
return string.Empty;
|
|
}
|
|
|
|
}
|