Regulations Governing the implementation of Safety Restrictions of Military Installations Article 4

When implementing restrictions, the personnel may search the body and belongings of the restrained person. Moreover, the personnel shall report to the Commander of the military installation. If the restrained individuals are females, it should be the female personnel to do the action, especially the physical check.
中文原文 軍事營區安全管束實施辦法第4條
實施人員實施管束時,得檢查受管束人之身體及所攜帶之物品,並應立即陳報該軍事營區之指揮官。
但受管束人為女性者,其身體之檢查,應由女性人員實施之。

English translation for reference only; the Chinese text prevails. Not legal advice.