Skip to main content
Commonmark migration
Source Link

##Windows PowerShell, 36 74 138

Windows PowerShell, 36 74 138

$input-replace'(?<!^ *) (?! *$)','@'

##Windows PowerShell, 36 74 138

$input-replace'(?<!^ *) (?! *$)','@'

Windows PowerShell, 36 74 138

$input-replace'(?<!^ *) (?! *$)','@'
edited body
Source Link
Joey
  • 13.2k
  • 2
  • 43
  • 73

##Windows PowerShell, 36 7574 138

$input-replace'(?<!^ *) (?! *$)','@'

##Windows PowerShell, 36 75 138

$input-replace'(?<!^ *) (?! *$)','@'

##Windows PowerShell, 36 74 138

$input-replace'(?<!^ *) (?! *$)','@'
deleted 88 characters in body; deleted 1 characters in body; edited body; deleted 50 characters in body; added 21 characters in body
Source Link
Joey
  • 13.2k
  • 2
  • 43
  • 73

##Windows PowerShell, 138

Very ungolfed.36 75 138

$input|%{$x=$_-match'^ *'
$l=$Matches[0].Length
$x=$_$input-match' *$'
$t=$Matches[0].Length
' '*$l+replace'($_-replace'^?<!^ *|*) *$'-replace'(?! *$)','@')+' '*$t}

##Windows PowerShell, 138

Very ungolfed.

$input|%{$x=$_-match'^ *'
$l=$Matches[0].Length
$x=$_-match' *$'
$t=$Matches[0].Length
' '*$l+($_-replace'^ *| *$'-replace' ','@')+' '*$t}

##Windows PowerShell, 36 75 138

$input-replace'(?<!^ *) (?! *$)','@'
Source Link
Joey
  • 13.2k
  • 2
  • 43
  • 73
Loading