2024-10-25 06:28:58 +00:00
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text.RegularExpressions;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
using System.Globalization;
|
|
|
|
|
using Godot;
|
|
|
|
|
|
2026-05-22 12:25:02 +00:00
|
|
|
using Rokojori.Extensions;
|
2024-10-25 06:28:58 +00:00
|
|
|
namespace Rokojori
|
|
|
|
|
{
|
|
|
|
|
public static class XMLRegexExtensions
|
|
|
|
|
{
|
|
|
|
|
public static string Extend( string source )
|
|
|
|
|
{
|
|
|
|
|
source = RegexExtensions.Extend( source );
|
|
|
|
|
|
|
|
|
|
// xml-name
|
|
|
|
|
source = RegexUtility.Replace( source, @"\\xml-name", @"((?:\w|_)(?:\w|\-|_|\.)*)" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return source;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|