^ means that the string has to start with whatever follows it.
?: means that $regml() isn't filled with anything, so the $regex is quicker.
| is "OR", so it matches bi or act_.