can anybody help me to have more efficient code..
i tried to do some simple regex to split an URL
i tried to do this on my own many times but i couldnt seem to get it right
i havent master regex yet..(im learning - but the learning curve is not as fast as i expected to)

print site

it will breaks up the url in to small chunks of list items everytime it encounter '/'

and i also tried

print y

and it will give me

but what i really want is to make it look like

when the input is


so i want to omit all the URL after .au/ and save it in the list

anybody knows how to make it look the way i need it?


thanks heapss..that was really helpfull