Add documentation about regex matching