serial communication

should anyone give short example of how to use Serial.find() function in arduino .please help me

Here’s one from an easy Google search:

if (Serial.find("P")) {
    // read and parse characters before the comma:
    int ledNumber = Serial.parseInt(); 
    // read and parse characters after the comma:
    int brightness = Serial.parseInt();
}

From http://www.tigoe.net/pcomp/code/

References:

http://arduino.cc/en/Serial/Find

http://forum.arduino.cc/index.php?topic=178222.0

http://forum.arduino.cc/index.php?topic=159158.0

All from the first page of a Google search with ““Serial.find()””