Using AT commands to retrieve SMS sender number

Hi,

I'm using Sim800l module with my Arduino with the following code to receive SMS messages:

void RecieveMessage()
{
  Serial.println ("SIM800L Read an SMS");
  delay (1000);
  sim.println("AT+CNMI=2,2,0,0,0"); // AT Command to receive a live SMS
  delay(1000);
  Serial.write ("Unread Message done");
}

Is there any way that once an SMS is received i can extract the sender's number into a string?

there is a way of course, did you first manage to capture the incoming sms and store it into an array?