28 lines
577 B
C#
28 lines
577 B
C#
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Text.RegularExpressions;
|
||
|
using System.Text;
|
||
|
|
||
|
using System.Globalization;
|
||
|
using Godot;
|
||
|
|
||
|
namespace Rokojori
|
||
|
{
|
||
|
public class RegexExtensions
|
||
|
{
|
||
|
public static string Extend( string source )
|
||
|
{
|
||
|
//RJLog.Log( "Original:", source );
|
||
|
|
||
|
// l: Linebreak
|
||
|
source = RegexUtility.Replace( source, @"\\l", @"(?:\r\n|\r|\n)" );
|
||
|
|
||
|
// v: Variable
|
||
|
source = RegexUtility.Replace( source, @"\\l", @"(?:\w|_)+" );
|
||
|
|
||
|
//RJLog.Log( "Extended:", source );
|
||
|
|
||
|
return source;
|
||
|
}
|
||
|
}
|
||
|
}
|