You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a call like this will not return (at least not in the several minutes I tried waiting for it):
RegSeed regExGen = new RegSeed("(prefix://([0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}).*$)");
string result = regExGen.Generate();
Taking the .*$ off the end of the pattern makes it run but then not generate any random data after the prefix://GUID portion (obviously).
I can constrain the number of characters generated manually by inserting something like {5} or {1, 50} or {,50} in place of the * but the result will include the $ character and not pass a regex test of the pattern against the result.
The text was updated successfully, but these errors were encountered:
I believe that because the pattern says .* which is greedy the generator just never stops generating characters and you can watch memory increase as the string builder keeps doubling.
While it is logical to treat .* as generate forever that isn't practical and should probably be replaced with a random number of characters within a reasonable or configurable limit.
Creating a call like this will not return (at least not in the several minutes I tried waiting for it):
Taking the .*$ off the end of the pattern makes it run but then not generate any random data after the prefix://GUID portion (obviously).
I can constrain the number of characters generated manually by inserting something like {5} or {1, 50} or {,50} in place of the * but the result will include the $ character and not pass a regex test of the pattern against the result.
The text was updated successfully, but these errors were encountered: