Repeat a string: Difference between revisions
Add ed example
(PascalABC.NET) |
(Add ed example) |
||
Line 1,017:
String funny = "ha" * 5;
String stars = '*' * 80;
</syntaxhighlight>
=={{header|ed}}==
Port of [[#sed]]. Number of ampersands is the number of repetitions.
<syntaxhighlight lang="sed">
# by Artyom Bologov
H
s/.*/&&&&&/
p
Qp
</syntaxhighlight>
|