fart-it icon indicating copy to clipboard operation
fart-it copied to clipboard

Allow wildcards

Open NurioHin opened this issue 4 years ago • 0 comments

The title should speak for itself. Please allow the use of wildcards in some fashion. While not necessary for my case, it would probably also be nice to be able to backreference that wildcard

For example, I have a list of data like this:

Player 1: 15, 84, 26, true, 5
Player 2: 17, 80, 32, false, 4
Player 3: 19, 76, 38, true, 3

I want to be able to squeeze in a "false" at the second to last value, regardless of what all other values say, so it would come out looking like this:

Player 1: 15, 84, 26, true, false, 5
Player 2: 17, 80, 32, false, false, 4
Player 3: 19, 76, 38, true, false, 3

If wildcards and backreferences are supported, I'd easily be able to use a command like this:

fart.exe data.txt "Player *: *, *, *, *" "Player *, *, *, *, false, *"

Of course, if there will be support for regular expressions, then it can be done through that as well

NurioHin avatar Apr 27 '20 23:04 NurioHin