How to ignore whitespace and carriage returns within text using regular expressions

galaxy

New Member
Im quite new to stackoverflow so I dont know if this question has been asked before, but I cant seem to find any past questions which hint at the answer. Any help is really appreciated and thanks in advance.I have this text:\[code\]{ 1282837200, -- [1] "Type", -- [2] "Name", -- [3] "Reason", -- [4] Amount, -- [5] }, -- [1] { 1282838220, -- [1] "Type", -- [2] "Name", -- [3] "Reason", -- [4] Amount, -- [5] }, -- [2]\[/code\]Which I need to create a regular expression for and extract the necessary data. I understand how to extract data from source files using regular expressions within PHP, using source text which has no "whitespace" or carriage returns. But I need help with creating an expression which includes the whitespace etc. included within this source.
 
Back
Top