Skip to content

Commit

Permalink
Added a readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Schumacher committed Aug 15, 2013
1 parent 8f61b5a commit 116c508
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Delphi implementation of VerbalExpression

This is a implementation of [VerbalExpression](http://verbalexpressions.github.io/) for Delphi.

# Example

```Delphi
var
LobjVerbalExpression : TVerbalExpression;
begin
LobjVerbalExpression := TVerbalExpression.Create
.StartOfLine()
._Then('http')
.Maybe('s')
._Then('://')
.Maybe('www.')
.anythingBut(' ')
.endOfLine();
ListBox1.Items.Add(LobjVerbalExpression.AsString);
if LobjVerbalExpression.Test('https://github.com') then
ListBox1.Items.Add('valid url')
else
ListBox1.Items.Add('invalid url');
end;
```

0 comments on commit 116c508

Please sign in to comment.