Line feeds inside a class expression
Posted: Fri Jan 15, 2010 11:58 am
I have the following which I want to use a regular expression to replace:
The problem I am having is with the unknown number and location of line feeds. I have tried various iterations of the below but cannot get it to deal with the line feeds:
Is there a way of including line feeds within the class expression as that seems to be the thing that is causing the problem?
Thanks.
Code: Select all
Some known text
some unknown text that includes an unknown number of line feeds (\n)
Some more known textCode: Select all
Some known text[[:print:][:space:][:cntrl:]]*Some more known textThanks.