Regex nested asterisk -
i found regular expression in old system i'm working on.
(\s*)*
i'm pretty sure " * " @ end redundant want make sure not doing before remove it. it's causing performance issue when it's used in regex.matches() method point hangs entire system if string used parameter has 25+ spaces
does knows if particular syntax has special functionality?
ps: pretty huge system can't test every posible scenario
assuming inner *
greedy, then, yes, think outer 1 redundant. outer *
attempts repeat sub-match, there ever 1 instance of sub-match because it's greedy.
Comments
Post a Comment