[dlang] Mistakes in documentation

Chris via Digitalmars-d digitalmars-d at puremagic.com
Tue May 19 06:43:13 PDT 2015


I noticed some mistakes in

http://dlang.org/regular-expression.html

I haven't checked the whole page for mistakes, but I suggest we 
change the following paragraph:

[Current]
Here is where regular expressions come in handy, often succinctly 
called as regexes. Regexes are simple yet powerful language for 
defining patterns of strings, put together with a substitution 
mechanism, they form a Swiss Army knife of text processing. They 
are considered so useful that a number of languages provides 
built-in support for regular expressions. This does not nessary 
mean that built-in implies faster processing or more features. 
It's more a matter of providing convenient and friendly syntax 
for typical operations and usage patterns.

[Suggestion]
Here is where regular expressions – often just called 
<i>regexes</i> – come in handy. Regular expressions are a simple 
yet comprehensive language for defining string patterns. Combined 
with a mechanism for string substitution, regular expressions are 
a powerful tool for text processing. In fact, they are considered 
so useful that a number of languages provide built-in support for 
them. However, built-in support does <b>not</b> necessarily imply 
<b>faster</b> processing or more features, it is rather a way of 
providing a <b>convenient and user-friendly syntax</b> for 
typical operations and usage patterns.

[something along these lines]


More information about the Digitalmars-d mailing list