Last active
March 28, 2019 21:15
-
-
Save binki/a96bbf9a282616671ecd7386a9f17510 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\Users\ohnob>SET _test=this is ab test of abs. | |
C:\Users\ohnob>ECHO %_test:*ab=% | |
test of abs. | |
C:\Users\ohnob>ECHO %_test:ab=% | |
this is test of s. | |
C:\Users\ohnob>ECHO %_test:*ab=% | |
test of abs. | |
C:\Users\ohnob>SET _test=this is a repeating this is a repeating string | |
C:\Users\ohnob>ECHO %_test:*ing=% | |
this is a repeating string |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that this proves that https://stackoverflow.com/a/45969239/429091 is a reliable solution.