SReject commented on a Page, sockets football  -  Dec 08, 2011

Use regsubex instead

alias -l html return $regsubex($1,/(?:^|<)[^<>]+>|(?:<[^>]+$)|&nbsp;/g,)

For those wondering, $regsub (Not to be confused with $regsubex) is an older way of doing RegExp substitutions. It returns the number of substitutions made(?), and fills an output variable with the resulting text:

$regsub(<input string>,/pattern/,replacement text,%outputvar)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.