Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Retina, 44 20 bytes

Crossed out 44 is still regular 44 :(Crossed out 44 is still regular 44 :(

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner@MartinBüttner for shaving off 24 bytes!

Try it online!

Retina, 44 20 bytes

Crossed out 44 is still regular 44 :(

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 24 bytes!

Try it online!

Retina, 44 20 bytes

Crossed out 44 is still regular 44 :(

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 24 bytes!

Try it online!

Crossed out 44 is still regular 44 :(
Source Link
daavko
  • 844
  • 6
  • 11

Retina, 44 20 bytes

Crossed out 44 is still regular 44 :(

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 24 bytes!

Try it online!

Retina, 44 20 bytes

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 24 bytes!

Try it online!

Retina, 44 20 bytes

Crossed out 44 is still regular 44 :(

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 24 bytes!

Try it online!

added 15 characters in body
Source Link
daavko
  • 844
  • 6
  • 11

Retina, 44 2220 bytes

+`'([^']\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 2224 bytes!

Try it online!Try it online!

Retina, 44 22 bytes

+`'([^']).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 22 bytes!

Try it online!

Retina, 44 20 bytes

+`'(\w).(.*).\B
$1$2

Assumes input in following format (in unary - counting character: '):
{number of repeats}{string}
For example: '''''''ABCDEFGHIJKLMNOP
There is no space between number of repeats and the string.

Thanks @MartinBüttner for shaving off 24 bytes!

Try it online!

deleted 34 characters in body
Source Link
daavko
  • 844
  • 6
  • 11
Loading
added 188 characters in body
Source Link
daavko
  • 844
  • 6
  • 11
Loading
Source Link
daavko
  • 844
  • 6
  • 11
Loading