Consecutive Spaces - 19/08/05 08:37 AM
A while ago I saw a $regsub that inserted a ^O between consecutive spaces. It was something like this:
I was wondering if there were a way to replace every other space with a $chr(160) instead of putting a ^O between each one. This would greatly help clean up some parts of my script.
Code:
$regsub($mid($rawmsg,$calc($pos($rawmsg,$chr(32),3) +2)),/(?<= |^)(?= |$)/g,,%var)
I was wondering if there were a way to replace every other space with a $chr(160) instead of putting a ^O between each one. This would greatly help clean up some parts of my script.