diff --git a/README.md b/README.md index fb9b8b1..32ade6e 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ Search and replace with **.NET regular expressions** from the command line, using the same engine as your C# code. +regex CLI and C# share the .NET regular expression engine: same pattern, same engine + ## Why not grep or ripgrep? Use them for general text search, they are faster and more widely installed. Use `regex` when you need the .NET flavor: diff --git a/assets/hero-regex.png b/assets/hero-regex.png new file mode 100644 index 0000000..24b2561 Binary files /dev/null and b/assets/hero-regex.png differ diff --git a/assets/hero-regex.svg b/assets/hero-regex.svg new file mode 100644 index 0000000..64e342d --- /dev/null +++ b/assets/hero-regex.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + +grep -E(foo|bar)\+a{2,3}[[:digit:]]sed\(foo\|bar\)\+s/x/\1/\{2,3\}PCRE / Python(?P<name>foo)(?P=name)?????DIALECT CHAOS(?<id>\w+).NET$ regex "Name:(?<n>\w+)" -R "id=${n}"names.txtid=Annaid=Benid=CaraRegex.Replace(text, "Name:(?<n>\w+)", "id=${n}");C#SAME IN C#! + \ No newline at end of file