Revert "Adding regx to get component"

This reverts commit fa682533b713276fffb14c5211646ee999093cda.