czardas Posted January 10, 2018 Share Posted January 10, 2018 (edited) Yeah, I wanted to use the simplest syntax. I'll leave it to you guys to fix. RegExp patterns don't constitute beginner level code IMO. Edited January 10, 2018 by czardas Earthshine 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Earthshine Posted January 10, 2018 Share Posted January 10, 2018 27 minutes ago, ViciousXUSMC said: This is one time I feel RegEx is better than the string functions, is shorter, and does exactly what is needed without a complicated pattern. czardas version works well, it does strip the pipes and have you add them back in the new text is the only thing I can see to be aware of. I always feel that way but I am WEAK at regexp My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
iamtheky Posted January 10, 2018 Share Posted January 10, 2018 Just now, Earthshine said: I always feel that way but I am WEAK at regexp unpopular opinion: the folk who crutch on regex suck with stringops and take unnecessary penalties czardas 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
czardas Posted January 10, 2018 Share Posted January 10, 2018 1 minute ago, iamtheky said: the folk who crutch on regex suck with stringops and take unnecessary penalties LOL Earthshine 1 operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
ViciousXUSMC Posted January 10, 2018 Share Posted January 10, 2018 42 minutes ago, Earthshine said: I always feel that way but I am WEAK at regexp I am not strong at it, but have enough skill to make use of it. For unknown values it has really helped me automate a lot of things. This is my best friend: https://regex101.com/ Also lets you link to show examples: https://regex101.com/r/M34RkR/1 Earthshine 1 Link to comment Share on other sites More sharing options...
Earthshine Posted January 10, 2018 Share Posted January 10, 2018 (edited) I consider myself a string-op master. i have always had to do it the hard way with every language. Basic, VB, C, etc.... but not C# cause all that stuff is built and tested and works great that site is awesome. i have learnding to do as the stupid kid Sean on Jimmy Neutron would say Edited January 10, 2018 by Earthshine My resources are limited. You must ask the right questions Link to comment Share on other sites More sharing options...
RestrictedUser Posted April 21, 2019 Share Posted April 21, 2019 On 1/9/2018 at 10:29 PM, azkirak said: Aren't those for arrays though? yep, but you can do this: _ArrayToString(_StringBetween("Text", "Left", "Right")) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now