I'm using an API which is checking values with php preg_match method. I can only use original value (I can't prepare it) and regex expression. Value is a multiple line string like
12 value;
13 value;
14 value;
Now I need to check if every line matches my regex expression which is for single line would be like '/^\d+\s\w+\;$/'.
So the correct regex would return true (1) for the previous value and false (0) for the value below:
12 value;
13 ;
14 value;
Is that possible?