Match at the beginning of a string

PHP RegEx: Match the Beginning of the String

In previous tutorial we match the given string. Now we are going to match at the beginning of the given string. The regex character to read beginning is the caret (^). Then we see if the string given begin with Ron. The forward slashes (/) we see are the delimeter that hold our regex pattern. And the quotations are used to 'wrap it all'. Then we see the (^) will put as the beggining of the string.