Giter VIP home page Giter VIP logo

elektrostudios / regexcon-performs-regex-substitution-via-command-line Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 204 KB

Command-line app to perform RegEx string substitutions.

License: Apache License 2.0

Visual Basic .NET 100.00%
command-line command-line-tool command-line-tools commandline commandline-tool console-application consoleapp dotnet elektrostudios regex regular-expression regular-expressions regularexperssion regularexpression regularexpressions string string-manipulation strings vbnet windows

regexcon-performs-regex-substitution-via-command-line's Introduction

RegexCon

Command-line app to perform Regular Expression (RegEx) string substitutions.

logo


๐Ÿ‘‹ Introduction

I decided to develop RegexCon as a solution for a third-party application that is written in a scripting language with limited Regex capabilities, but that third-party application supports running external apps, and this is where RegexCon comes into play for me, bridging the gap by enabling that third-party application to execute regular expression substitutions as required.

RegexCon could be used, for example, in a for-loop of any programming language to perform file renamings.

I'm convinced you would find additional scenarios where this tool proves invaluable to you!.

โ€ผ๏ธ Limitations

RegexCon relies on the .NET regex engine and it utilizes its pattern syntax. While most common regex pattern syntax from other languages will work properly with RegexCon, it's important to note that each programming language has its own regex implementations, which may include minor syntax differences and/or limitations. For instance, a named group in PHP is written differently than in .NET. The responsibility for syntax adaptation lies with the end user.

๐Ÿ“ Requirements

  • Microsoft Windows OS.

๐Ÿค– Getting Started

Download the latest release by clicking here,

Syntax

RegexCon.exe /I=(input) /E=(expression) /S=(substitution)

Switches

/Input        or /I | The input string.
/Expression   or /E | The regular expression.
/Substitution or /S | The substitution string.
/MatchCase    or /M | Matches characters in a case-sensitive manner.
/?                  | Shows this help.

Switch value types


/Input        or /I | Any string
/Expression   or /E | Any string
/Substitution or /S | Any string
/MatchCase    or /M | True/False

Usage examples


( Regular string substitution. )
RegexCon.exe /I="Hello World" /E="^(.+)\s(.+)$" /S="$2 $1" /M=True

( Named-group string substitution. )
RegexCon.exe /I="Hello World" /E="^(?<one>.+)\s(?<two>.+)$" /S="${two} ${one}"

๐Ÿ”„ Change Log

Explore the complete list of changes, bug fixes, and improvements across different releases by clicking here.

โš ๏ธ Disclaimer:

This Work (the repository and the content provided in) is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the Work or the use or other dealings in the Work.

๐Ÿ’ช Contributing

Your contribution is highly appreciated!. If you have any ideas, suggestions, or encounter issues, feel free to open an issue by clicking here.

Your input helps make this Work better for everyone. Thank you for your support! ๐Ÿš€

๐Ÿ’ฐ Beyond Contribution

This work is distributed for educational purposes and without any profit motive. However, if you find value in my efforts and wish to support and motivate my ongoing work, you may consider contributing financially through the following options:



__________________

Becoming my sponsor on Github:

You can show me your support by clicking here,
contributing any amount you prefer, and unlocking rewards!



__________________

Making a Paypal Donation:

You can donate to me any amount you like via Paypal by clicking here.



__________________

Purchasing software of mine at Envato's Codecanyon marketplace:

If you are a .NET developer, you may want to explore 'DevCase Class Library for .NET',
a huge set of APIs that I have on sale. Check out the product by clicking here

It also contains all piece of reusable code that you can find across the source code of my open source works.



Your support means the world to me! Thank you for considering it! ๐Ÿ‘

regexcon-performs-regex-substitution-via-command-line's People

Contributors

elektrostudios avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.