I'm trying to check if a variable has a number that starts with >> i.e., >>12345 and then separate that number into a different variable.
For example:
$my_string = "
>>12345
Hello this is an example string.
";
I'd like to store the '>>12345' in the database as a separate variable. Similar to image boards.
regexpis what you need. see example here stackoverflow.com/questions/13555905/…. you can validate your regexp sintax here: regex101.com