[SOLVED] Problem with Javascript regex match | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

[SOLVED] Problem with Javascript regex match

In my code, I need to check whether the given text matches any one of the given pattern, but it is not working properly. In my code's case, the text given will be a C program and for that, I need to check whether the given needs the user input or not by checking for the functions scanf(""), gets() or getchar() exists in the code. So, the code should check it and return a Boolean value i.e true or false by checking whether the functions to take input like scanf(""), gets() or getchar() exists in the code. So, help me to check it. My code link: https://code.sololearn.com/Wrh8J71WI5aA/?ref=app

18th Oct 2020, 3:35 AM
Bibek Oli
Bibek Oli - avatar
1 Answer
+ 2
Coder Kitten OMG😱😱 It's working after removing spaces😂 I didn't know spaces also affect that much, and I was debugging since a hour.😉
18th Oct 2020, 3:49 AM
Bibek Oli
Bibek Oli - avatar