Simple URI parsing class added

Can you guide me to the regex ?

With my regex knowledge I have to spend a day to find the right regex !