Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
r"
\((\w{4},\w{4})\) (?:\w+|na) (?:\[(.*?)\])?.*#.* (\w+)$
"
g
Input 1
# Used TransferSyntax: JPEG Lossless, Non-hierarchical, 1st Order Prediction (0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet (0008,0008) CS [ORIGINAL\PRIMARY] # 16, 2 ImageType (0008,0016) UI =UltrasoundImageStorage # 28, 1 SOPClassUID (0008,0018) UI [1.2.826.0.1.3680043.2.1545.1.2.1.7.20231229.182711.644.28] # 58, 1 SOPInstanceUID (0008,0020) DA [20231229] # 8, 1 StudyDate (0008,0021) DA [20231229] # 8, 1 SeriesDate (0008,0022) DA [20231229] # 8, 1 AcquisitionDate (0008,0023) DA [20231229] # 8, 1 ContentDate (0008,002a) DT [20230718145944] # 14, 1 AcquisitionDateTime (0008,0030) TM [182711] # 6, 1 StudyTime (0008,0031) TM [182711] # 6, 1 SeriesTime (0008,0032) TM [182711]
Substitution
# Used TransferSyntax: JPEG Lossless, Non-hierarchical, 1st Order Prediction (0008,0005) CS [ISO_IR 100] # 10, 1 SpecificCharacterSet (0008,0008) CS [ORIGINAL\PRIMARY] # 16, 2 ImageType (0008,0016) UI =UltrasoundImageStorage # 28, 1 SOPClassUID (0008,0018) UI [1.2.826.0.1.3680043.2.1545.1.2.1.7.20231229.182711.644.28] # 58, 1 SOPInstanceUID (0008,0020) DA [20231229] # 8, 1 StudyDate (0008,0021) DA [20231229] # 8, 1 SeriesDate (0008,0022) DA [20231229] # 8, 1 AcquisitionDate (0008,0023) DA [20231229] # 8, 1 ContentDate (0008,002a) DT [20230718145944] # 14, 1 AcquisitionDateTime (0008,0030) TM [182711] # 6, 1 StudyTime (0008,0031) TM [182711] # 6, 1 SeriesTime (0008,0032) TM [182711]