Skip to content

Commit

Permalink
Merge pull request #103 from mrmonday/patch-3
Browse files Browse the repository at this point in the history
Fix a couple of typos.
  • Loading branch information
andralex committed Apr 15, 2012
2 parents f307666 + e087cfa commit 79a4dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regular-expression.dd
Expand Up @@ -51,7 +51,7 @@ void main(string argv[]){
)
$(P Now, come to think of it, this tiny sample showed a lot of useful things already:
$(UL
$(LI a row string literal of form r"...", that allows writing a regex pattern in its natural notation )
$(LI a raw string literal of form r"...", that allows writing a regex pattern in its natural notation )
$(LI $(D match) function, is an universal tool that we'll see in other work scenarios as well.
To check if there was a match on a string, just test the return value explicitly as boolean. )
$(LI when trying to match special regex characters like +, *, (, ), [, ] and $ don't forget to use escaping with \ )
Expand Down Expand Up @@ -235,7 +235,7 @@ assert(m.captures[1] == "31");
$(P In this particular case it matched roughly 50% faster for me though I haven't done comprehensive analysis of this case.
Not to spoil the excitement, but as of this writing the feature is experimental and temporarily lacks some extensions.
Continuing the gloomy trend, be warned that compiler might choke on it, and it's also less tested.
That being sad, there is no doubt ctRegex facility will only improve over time.
That being said, there is no doubt ctRegex facility will only improve over time.
So start with run-time version, then go compile-time if willing to experiment or
when need to squeeze out some more performance.
)
Expand Down

0 comments on commit 79a4dba

Please sign in to comment.