Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
Search community submissions...
x
Normalizing data from a string
Open Workspace
Python
Match
Created 2023-03-18 11:57
0
Regular Expression
r"
\w\s
(?P<type>
\S
+
)
\s
(?P<name>
\S
+
)
\s
(?P<model>
\S
+
)
\s
(?P<code>
\S
+
)
\s
(?P<serial_number>
\S
+
)
\s
(?P<in_charge>
\S
+
\s\S
+
\s\S
+
)
"
g
Description
Gets several strings and makes a list of data attributes in a formatted way
Submitted by
SevebFeet