Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Begin grammar
- (
- -(*(char_ - lit("://")) >> lit("://")) >>
- (
- // : means we are going to append a port number. / is the beginning of the path
- +(char_ - ':' - '/') >>
- //Port number - optional
- -(':' >> int_) >>
- //path
- -('/' >> +(char_))
- )
- ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement