Hi how to write a regular expression in powershell to remove any string that started with | D|Ref.Doc. ?
| D|Ref.Doc. |Row|DocumentNo|CoCd|Pstng Date|Period
| W|100003574 | 3|65697957 |CACS|01/15/2016| 1
| W|100003574 | 3|65697957 |CACS|01/15/2016| 2
| W|100003574 | 3|65697957 |CACS|01/15/2016| 3
| D|Ref.Doc. |Row|DocumentNo|CoCd|Pstng Date|Period
| W|100003575 | 3|65697957 |CACS|01/15/2016| 1
| W|100003575 | 3|65697957 |CACS|01/15/2016| 2
| W|100003575 | 3|65697957 |CACS|01/15/2016| 3
Expected output
| W|100003574 | 3|65697957 |CACS|01/15/2016| 1
| W|100003574 | 3|65697957 |CACS|01/15/2016| 2
| W|100003574 | 3|65697957 |CACS|01/15/2016| 3
| W|100003575 | 3|65697957 |CACS|01/15/2016| 1
| W|100003575 | 3|65697957 |CACS|01/15/2016| 2
| W|100003575 | 3|65697957 |CACS|01/15/2016| 3
-notlike'| D|Ref.Doc.*'