Every person who attempts to commit an offense, but fails to commit or is prevented from committing it, shall be subject to the penalty provided in § 92.99(G) if the offense is punishable by confinement in jail.
(W. Va. Code 61-11-8) (Prior Code, § 501.06)