I'm trying to apply REgex on a Field of type Rich Text Area, Here I'm facing issue with identifying a pattern which is separated with a new line.
Rich Text Area value-
Some Order Info Order Number 1234567890 Some related info
Expected Result -
(Order Number) (1234567890)
This Regex doesnt work when I apply it to the Rich Text Area field directly. But when I created a String with same value in Apex where \n was used for new lines, it works. Can anyone explain this and correct me where am I going wrong?