Skip to content

GroophyLifefor/StringManager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple usage

var wildcard = StringManager.ExportWildcards(";[name]=[value]\n");

StringManager sm = new StringManager("@echo off\r\n\r\nfn main()\r\n{-\r\n\t; A=B\r\n-}\r\n");

sm.ApplyWildcards(wildcard, modifyWildcard =>
{
    // from, ; name=value
    // to  , set name=value
    var name = modifyWildcard.GetValue("name").Trim();
    var value = modifyWildcard.GetValue("value");
    
    modifyWildcard.Replace($"SET {name}={value}\n");
});

Console.WriteLine(sm.Text);

@echo off

fn main()
{-
        SET A=B
-}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages