Reputation: 6533
Hey I have the following regex [email protected]:-/-_- -\r\n-\s-
,
which is fine but i also want to allow new lines/break from data from text area so I can retrieve the next line.
So lets data is like this
Geography - Higher - A1 Irish - Higher - A2 Maths Ordinary - B1 English - Higher - B1 Business - Higher - B1 French - Higher - B1
My current script is stopping at "Geography - Higher - A1" I need to get to next line.
PS : What I am doing is using a program called Text Template Parser which requires the regex
Upvotes: 1
Views: 2143
Reputation: 53101
It's hard to say because some editors (web or otherwise) do line breaks differently. Try using just '\n' or '\r'. Sometimes it just one of them.
Try this to test what you're editor is using.
.*\n.*
.*\r.*
Upvotes: 3