Check your regex
pattern. For example,
Enter regex and subject:
cat$ cat\ndog
Enter regex and subject:
^cat cat\ndog
cat
No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.
General Tech 10 Answers
General Tech 7 Answers
General Tech 3 Answers
General Tech 9 Answers
Is Cash AI the ultimate hands-free affiliate tool for beginners?
Is Foldable Smartphone Technology the Future or Just a Trend?
manpreet
Best Answer
2 years ago
I have a simple program in Go to aid in learning regular expressions. It runs in an infinite loop and has 2 channels, one which is used to provide input (input contains regex pattern and subject), and the second one, which provides the output.
However there is propably something wrong in the code, as i can't seem to get any results with the
$
modifier.For example, i expect "cat" output from
yet receive zero results.
Code: