Did anyone experience leg twitching???

I started having it the other night while sleeping which was keeping me up most of the night, and i DO remember having this when i was pregnant with my daughter too.

Is this normal? What causes it?