Creates a new RegExp with the given flags.
flags
import {setRegExpFlags} from '@augment-vir/common';setRegExpFlags(/a/i, 'gm');// output is `/a/gm` Copy
import {setRegExpFlags} from '@augment-vir/common';setRegExpFlags(/a/i, 'gm');// output is `/a/gm`
@augment-vir/common
Creates a new RegExp with the given
flags
.