<?php preg_match('/# Input\n(# (?:.*?))# Output/s', '# Input # data/raw/file1 # data/raw/file2 # Output # data/interim/file1 # data/interim/file2', $match); $matched = preg_split('/# /', $match[1], -1, PREG_SPLIT_NO_EMPTY); print_r($matched);
You have javascript disabled. You will not be able to edit any code.