working regex
updated documentation