Adding regx to get component

Adding regx to get component