mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 11:32:59 +00:00
21 lines
395 B
C#
21 lines
395 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
|
|
namespace Esiur.Data
|
|
{
|
|
struct VarInfo
|
|
{
|
|
public string Pre;
|
|
public string Post;
|
|
public string VarName;
|
|
|
|
public string Build()
|
|
{
|
|
return Regex.Escape(Pre) + @"(?<" + VarName + @">[^\{]*)" + Regex.Escape(Post);
|
|
}
|
|
}
|
|
|
|
}
|