Quantcast
Channel: SIL Language Software Community - Latest topics
Viewing all articles
Browse latest Browse all 648

Regex changes - how to deal with newline

$
0
0

In a reversals .xhtml file I want to remove an entire section of the class=“letHead”, including the reversal entries. I have tried to write a regex change and this is what I currently have:

Find:

1(.+\s.+)

Replace:

The xhtml has a CRLF that I need to account for - see screenshot from Notepad++. However, the \s in the regex in the DAB change doesn’t work as per regex101.com where it is described as being used for any whitespace character including \r\n etc. Any ideas of how to do this please?

image

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 648

Trending Articles