I'm having a Regex issue that I'm hoping someone can help with.
I have the following type of string:
" name VARCHAR(11) NOT NULL, "
Of which I'm trying to extract only the length - in otherwords the numbers within the brackets.
I have looked at this: True regex for getting content from parentheses in square brackets but I'm just not figuring out how to make that work with my case.
I know that I could use str_replace to remove the unwanted data, but this is going to be messy and waste resources.
Can anyone help?