You are viewing a single comment's thread. Return to all comments →
Suggest moving the rgx instantiation to outside the for() loop, instantiating once instead of for each entry. ie:
static void Main(String[] args) { int N = Convert.ToInt32(Console.ReadLine()); Regex rgx = new Regex(pattern); for(int a0 = 0; a0 < N; a0++) ...
Seems like cookies are disabled on this browser, please enable them to open this website
Day 28: RegEx, Patterns, and Intro to Databases
You are viewing a single comment's thread. Return to all comments →
Suggest moving the rgx instantiation to outside the for() loop, instantiating once instead of for each entry. ie: