Quantcast
Viewing all articles
Browse latest Browse all 12

Reverse text line

 

Advanced

Reverse a line of text without the use of Array’s Reverse method, Array indices, Array notation, pipelines or loop statements.

Click the icons below for answer and explanation.


Image may be NSFW.
Clik here to view.
Image may be NSFW.
Clik here to view.

 

<span style="color: #ff4500;">$str</span> <span style="color: #a9a9a9;">=</span> <span style="color: #8b0000;">'!ereh saw yorliK'</span>
<span style="color: #a9a9a9;">-join</span> <span style="color: #000000;">(</span><span style="color: #0000ff;">New-Object</span> <span style="color: #8a2be2;">RegEx</span> <span style="color: #8a2be2;">.</span><span style="color: #a9a9a9;">,</span> <span style="color: #8a2be2;">RightToLeft</span><span style="color: #000000;">)</span><span style="color: #a9a9a9;">.</span><span style="color: #000000;">Matches</span><span style="color: #000000;">(</span><span style="color: #ff4500;">$str</span><span style="color: #000000;">)</span>


Winner: Rob Campbell


Viewing all articles
Browse latest Browse all 12

Trending Articles