Get substring from string in mysql where length of substring is dynamic

You can use preg_match() to look for the regular expression to trim a string.

 int preg_match ( string $pattern , string $subject [, array &$matches [, int $flags = 0 [, int $offset = 0 ]]] )

You can read more here, and it would be much better if you provide further information.

Leave a Comment