Regular expression find string,word,numbers in string.
In this section,I will explain how to find words,string,numbers in string using Regular expression.
It is very easy to match strings or patterns of characters in php using regular expresions.
A regular expression provides a matching strings of word,particular characters, numbers,or patterns of characters.Abbreviations for `regular expression` includes `regex` and `regexp`

Example 1:
//Regular expression find word in string
 In first example, we are using Regular expression to fing word in string using `\b`.
`\b` allows you to find a perticular word only using a regular expression in the form of \bword\b.
<?php
$name = 'I have 6 years of exprience';
preg_match( '/\byears\b/', $name, $match );
echo $match[0];
?>
Output: years