Looking for a specific format within a string, such as SOM_P9ERR96M27VP4_PL. The conditions are: must have exactly two underscores, not at the beginning or end of the string, and no other special characters like "&*$," following the underscore. Additionally, a character must follow the underscore and consecutive underscores (__) are not allowed. Using this regular expression
/^(?![_])^[^_]*(_[^_]*){2}[^_](|_[a-zA-Z0-9])$/
fulfills most requirements, except the restriction on consecutive underscores, such as SOM__P9QTR96M27VP4PL.