LPS-44798 When possible, create regex pattern once and reuse instead of creating multiple times
LPS-41084 Add check to SF
LPS-44798 I only prefix the var when there is more than one pattern