I’m looking for a way to obtain all sequences of newline-like characters found in a string. I’m trying to use preg_match() as follows: But I only appear to be getting the last such match. I feel like the solution probably involves the use of G, but when I attempt to introduce it, the match fails entirely. I don’t think I’m