I'm looking at using Module:String#replace to take a multi-paragraph piece of text and return only the first paragraph. I can't seem to find the scribunto/lua way to specify a carriage return or new line. Any ideas?
{{#invoke:String|replace |source = INPUTTEXT |pattern = (.*)NEWLINESYMBOL |replace = %1 }}
Input:
The quick brown
fox jumps over the
lazy dog
Intended output:
The quick brown