Anonymous user
Regular expressions: Difference between revisions
Updated D entry
(Frink) |
(Updated D entry) |
||
Line 376:
=={{header|D}}==
<lang d>import std.stdio, std.
void main() {
immutable string s = "I am a string";
// Test:
if (
writefln("Ends with 'string'");▼
// Substitute:
}</lang>
{{out}}
Note that in std.string there are string functions to perform those string operations in a faster way.▼
I am another string</pre>
▲
=={{header|Erlang}}==
|