<div class="info"></div>
var text = `Текст №123
            Текст №123/2
            Текст # 123/2
            Текст #1234/2
            Текст #123/22
            Текст #123/2`;

$('.info').html(text.match(/(№|#{1})( {0,1})(\d{0,3})(\/{0,1})(\d{0,1})$/gm));

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js