Use preg_replace instead of str_replace for replacing extension

Authored by divadsn on Wed, Dec 6, 11:39 PM.

Description

Use preg_replace instead of str_replace for replacing extension

Bug: T166684
Change-Id: I233be410486276f30b08034180eb54cb08e04076

Details