Error of parsing, very difficult

Difficult to parse this:
I have 2 years of getting errors while parsing via html code,
is there any help to parse that number

                        <div class="code">
                            <span>
                                123456
                            </span>
                        </div>
BLOCK:ConstantString
  value = "                        <div class=\"code\">\r\n                            <span>\r\n                                123456\r\n                            </span>\r\n                        </div>"
  => VAR @RegList
ENDBLOCK

BLOCK:Parse
  input = @RegList
  pattern = "\\s*<div class=\"code\">\\s*<span>\\s*(.*)\\s*<\\/span>\\s*<\\/div>"
  outputFormat = "[1]"
  MODE:Regex
  => CAP @Reg
ENDBLOCK

i think it works

The 123456 is random bro, its not 100% everytime
i need to parse between that value to get only (123546) at final result, that 6 numbers are all times changed, i need to parse the numbers

I tried only this and works thanks

BLOCK:Parse

LABEL:FullCodeNumber

input = @data.SOURCE

pattern = “\s*<div class=“code”>\s*\s*(.)\s<\/span>\s*<\/div>”

outputFormat = “[1]”

MODE:Regex

=> CAP @FullCodeNumber

ENDBLOCK