rootx Posted June 10, 2018 Share Posted June 10, 2018 (edited) Inside a loop I need to change the the order or my strings!! CD1894EF In DC8149FE Thx Edited June 10, 2018 by rootx Link to comment Share on other sites More sharing options...
TheXman Posted June 10, 2018 Share Posted June 10, 2018 (edited) @rootx Do you have a question? Or did you just want to let us know where you are in your coding endeavors? What makes you think that a regular expression would be the best solution? Edited June 10, 2018 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
iamtheky Posted June 10, 2018 Share Posted June 10, 2018 $str = "CD1894EF" msgbox(0, '' , stringregexpreplace($str , "(.)(.)" , "$2$1")) ;DC8149FE rootx, dmob, TheXman and 1 other 3 1 ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
TheXman Posted June 10, 2018 Share Posted June 10, 2018 26 minutes ago, rootx said: Inside a loop I need to change the the order or my strings!! CD1894EF In DC8149FE @rootx Just out of curiosity, what are you trying to accomplish? At first, it appeared you were trying to change the endianess of an integer but didn't understand endianess. But swapping the nibbles within a byte has nothing to do with endianess. I can't figure out a practical reason to do this. CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman Link to comment Share on other sites More sharing options...
rootx Posted June 10, 2018 Author Share Posted June 10, 2018 THX Link to comment Share on other sites More sharing options...
rootx Posted June 10, 2018 Author Share Posted June 10, 2018 I have to clean the codes of a column of excell file!!! 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