I got a string which may have 1-3 stars at the beginning. I want to check if there are stars and if this is the case, I need to extract them as a integer.
* Lorem ipsum
** Lorem ipsum
*** Lorem ipsum
Lorem ipsum
Result:
array(1, 'Lorem ipsum')
array(2, 'Lorem ipsum')
array(3, 'Lorem ipsum')
array(0, 'Lorem ipsum')