title: Replace character with a number sequence in Notepad++
body: <p>I have a huge text file with following pattern which has been repeated till to the end of the file:</p>
  
  <pre><code>--- 3DModelImport
          ModelKey    nvarchar
          TagNo   nvarchar
          Type    nvarchar
          LocationDwg nvarchar
          SignalType  nvarchar
          JunctionBoxNo   nvarchar
          PlantXYZ    nvarchar
          RowGuidID   uniqueidentifier
  
  --- 3DModelInterface
          DbKey   int
          TagNo   nvarchar
          AreaUnit    nvarchar
          Type    nvarchar
          Description nvarchar
          ParentDbKey int
          SignalType  nvarchar
          JunctionBoxKey  int
          LocationDwg nvarchar
          PlantCoordX real
          PlantCoordY real
          PlantCoordZ real
          ModelKey    nvarchar
          SizeX   real
          SizeY   real
          SizeZ   real
          FromDb  datetime
          From3DModel datetime
          psize_ts    timestamp
          RowGuidID   uniqueidentifier
  
  --- AccessTypeEnum
          AccessTypeEnumID    int
          Description nvarchar
          RowGuidID   uniqueidentifier
  </code></pre>
  
  <p>What I need to do is to replace all '<strong>---</strong>' with a number sequence starting from 1 and incremented by 1 i.e.:</p>
  
  <pre><code>1- 3DModelImport
          ModelKey    nvarchar
          TagNo   nvarchar
          Type    nvarchar
          LocationDwg nvarchar
          SignalType  nvarchar
          JunctionBoxNo   nvarchar
          PlantXYZ    nvarchar
          RowGuidID   uniqueidentifier
  
  2- 3DModelInterface
          DbKey   int
          TagNo   nvarchar
          AreaUnit    nvarchar
          Type    nvarchar
          Description nvarchar
          ParentDbKey int
          SignalType  nvarchar
          JunctionBoxKey  int
          LocationDwg nvarchar
          PlantCoordX real
          PlantCoordY real
          PlantCoordZ real
          ModelKey    nvarchar
          SizeX   real
          SizeY   real
          SizeZ   real
          FromDb  datetime
          From3DModel datetime
          psize_ts    timestamp
          RowGuidID   uniqueidentifier
  
  3- AccessTypeEnum
          AccessTypeEnumID    int
          Description nvarchar
          RowGuidID   uniqueidentifier
  </code></pre>