maven replace regex replacement leading whitespace
Open
- Dominant language
- Java
- Stars
- 5.6k
- Forks
- 559
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 34
Description
I'm doing some replaceRegex rules and I'm attempting to replace some text with `` { }`` however the leading whitespace gets trimmed and doesn't get added.
I've tried numerous work arounds using unicode, cdata, escape codes, and they all get trimmed (or the formatter just breaks)
How the heck do i add a leading space in the replacement text?
```xml
collapseEmptyBlocks
(?s)[\s\r\n]*\{[\s\r\n]*\}
{}
```
Contributor guide
Assessment
This issue has not been assessed yet.