czardas Posted January 10, 2018 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
Earthshine Posted January 10, 2018 Posted January 10, 2018 On 1/10/2018 at 1:29 PM, 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. Expand I always feel that way but I am WEAK at regexp My resources are limited. You must ask the right questions
iamtheky Posted January 10, 2018 Posted January 10, 2018 On 1/10/2018 at 1:56 PM, Earthshine said: I always feel that way but I am WEAK at regexp Expand unpopular opinion: the folk who crutch on regex suck with stringops and take unnecessary penalties czardas 1 Reveal hidden contents ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__)
czardas Posted January 10, 2018 Posted January 10, 2018 On 1/10/2018 at 1:58 PM, iamtheky said: the folk who crutch on regex suck with stringops and take unnecessary penalties Expand LOL Earthshine 1 operator64 ArrayWorkshop
ViciousXUSMC Posted January 10, 2018 Posted January 10, 2018 On 1/10/2018 at 1:56 PM, Earthshine said: I always feel that way but I am WEAK at regexp Expand 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
Earthshine Posted January 10, 2018 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
RestrictedUser Posted April 21, 2019 Posted April 21, 2019 On 1/9/2018 at 6:59 PM, azkirak said: Aren't those for arrays though? Expand yep, but you can do this: _ArrayToString(_StringBetween("Text", "Left", "Right"))
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