for testing regular expressions