opt
/
alt
/
ruby26
/
lib64
/
ruby
/
2.6.0
/
rexml
/
dtd
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
attlistdecl.rb
234 bytes
Rename
Delete
dtd.rb
1.21 KB
Rename
Delete
elementdecl.rb
456 bytes
Rename
Delete
entitydecl.rb
1.66 KB
Rename
Delete
notationdecl.rb
1.07 KB
Rename
Delete
# frozen_string_literal: false require_relative "../child" module REXML module DTD class ElementDecl < Child START = "<!ELEMENT" START_RE = /^\s*#{START}/um # PATTERN_RE = /^\s*(#{START}.*?)>/um PATTERN_RE = /^\s*#{START}\s+((?:[:\w][-\.\w]*:)?[-!\*\.\w]*)(.*?)>/ #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true) def initialize match @name = match[1] @rest = match[2] end end end end
Save