Is it possible to change the name of glyphs in batch

in the above scripts, there is one function “rename glyphs”, but it can only find the exact name and replace it.
Is it possible to change the script to make it replace all names included, and in batch.
For example:
I have four smart component, named as _part.ping01, _part.ping02, _part.ping03, _part.ping04,
I only need to change part of it, from ping to pang, in batch
so, the result is : _part.pang01, _part.pang02, _part.pang03, _part.pang04,

You can use the built-in search and replace feature. See section 7.4.3 Batch-Renaming Glyphs in the Handbook.

thank you very much.