Let me assume that I have found a string "Blob \ nbob etc." I know I start at position $ pos I must choose everything at the end of the line I can not use the substr ($ string, $ pos, strpos ($ string, "\ n", $ pos)), because not using delimiter as mac \ n Does
How can I do this?
Thanks
Pass string through a function that \ r \ N before or with \ n This is definitely worth doing in a case, as long as you do not really want to preserve platform specific line intervals.
FWI Mac is used \ n now anyway
Comments
Post a Comment