mikell Posted December 10, 2013 Share Posted December 10, 2013 Sorry for my poor explanation $res = StringRegExpReplace($sString, "((.{1,59})\h+)|$", "$2" & @CRLF) Link to comment Share on other sites More sharing options...
kylomas Posted December 10, 2013 Share Posted December 10, 2013 kylomas, Think of | as a higher priority operator bounded by groups (). Hence the second RE is (.{1,59})h+ OR $ while the first is (.{1,59}) followed by (h+ OR $) The parts in red are conceptual, obviously. Thank jchd, makes sense now. @mikell - Thanks for trying. The failure to understand is on me, not you Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill 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