72
//string SourceURL = "SourceURL:https://metadataconsulting.blogspot.com/2019/04/Using-HTACG-HTML-Tidy-official-release-binaries-for-TidyHTML5Mananged.html";
1
using System;
2
3
public static class Program
4
{
5
/// <summary>
6
/// Define common patterns for substing actions
7
/// </summary>
8
public enum StrCut
9
{
10
BeforeLessStr = 0,
11
BeforeInclStr = 1,
12
AfterLessStr = 2,
13
AfterInclStr = 4
14
}
15
/// <summary>
16
/// Extend Susbstring with ability to pass a string and choose common actions surrounding that string.
17
/// </summary>
18
/// <param name="s"></param>
19
/// <param name="arg">string argument</param>
20
/// <param name="e">enum</param>
21
/// <returns></returns>
22
/// <author>Wed 01-May-19 - metadataconsult@gmail.com</author>
23
public static string Substring(this string s, string arg, StrCut e)
24
{
Cached Result