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"
\b(\d+)\s*ba<(?:\S*(?:\s(?!ba<|sqft<)\S*)*>(\d[,.\d]*)\s*sqft\b)?
"
gm
Input 1
1
1.45;" >1234 St1 St</p> <p class=3D"highlight-address" styl= e=3D"margin: 0; font-family: 'Montserrat', sans-serif; text-decoration: non= e; color: #323232; font-weight: 500; font-size: 13px; line-height: 1.45;" = >City, ST 12345</p><p class=3D"highlight-specs" style=3D"margin: 0; fo= nt-family: 'Montserrat', sans-serif; text-decoration: none; color: #323232;= font-weight: 500; font-size: 13px; line-height: 1.45;"><span style=3D"disp= lay: inline-block;">4 bd</span><span style=3D"display: inline-block;"> = ;=E2=80=A2 </span><span style=3D"display: inline-block;">2 ba</span><s= pan style=3D"display: inline-block;"> =E2=80=A2 </span><span styl= e=3D"display: inline-block;">1,596 sqft</span></p><p class=3D"highlight-spe= cs" style=3D"margin: 0; font-family: 'Montserrat', sans-serif; textdecorati= 1.45;" >5678 St2 Rd</p> <p class=3D"highlight-address" sty= le=3D"margin: 0; font-family: 'Montserrat', sans-serif; text-decoration: no= ne; color: #323232; font-weight: 500; font-size: 13px; line-height: 1.45;" = >City2, ST 6789</p><p class=3D"highlight-specs" style=3D"margin: 0= ; font-family: 'Montserrat', sans-serif; text-decoration: none; color: #323= 232; font-weight: 500; font-size: 13px; line-height: 1.45;"><span style=3D"= display: inline-block;">4 bd</span><span style=3D"display: inline-block;">&= nbsp;=E2=80=A2 </span><span style=3D"display: inline-block;">4 ba</spa= n></p><p class=3D"highlight-specs" style=3D"margin: 0; font-family: 'Montse= rrat', sans-serif; textdecoration: none; color: #323232; font-weight: 500; = 1.45;" >91011 St3 Rd</p> <p class=3D"highlight-address" style= =3D"margin: 0; font-family: 'Montserrat', sans-serif; text-decoration: none= ; color: #323232; font-weight: 500; font-size: 13px; line-height: 1.45;" >= City2, ST 10111</p><p class=3D"highlight-specs" style=3D"margi= n: 0; font-family: 'Montserrat', sans-serif; text-decoration: none; color: = #323232; font-weight: 500; font-size: 13px; line-height: 1.45;"><span style= =3D"display: inline-block;">4 bd</span><span style=3D"display: inline-block= ;"> =E2=80=A2 </span><span style=3D"display: inline-block;">2 ba<= /span><span style=3D"display: inline-block;"> =E2=80=A2 </span><s= pan style=3D"display: inline-block;">2,376 sqft</span></p><p class=3D"highl= ight-specs" style=3D"margin: 0; font-family: 'Montserrat', sans-serif; text=
Extraction
1.45;" >1234 St1 St</p> <p class=3D"highlight-address" styl= e=3D"margin: 0; font-family: 'Montserrat', sans-serif; text-decoration: non= e; color: #323232; font-weight: 500; font-size: 13px; line-height: 1.45;" = >City, ST 12345</p><p class=3D"highlight-specs" style=3D"margin: 0; fo= nt-family: 'Montserrat', sans-serif; text-decoration: none; color: #323232;= font-weight: 500; font-size: 13px; line-height: 1.45;"><span style=3D"disp= lay: inline-block;">4 bd</span><span style=3D"display: inline-block;"> = ;=E2=80=A2 </span><span style=3D"display: inline-block;">2 ba</span><s= pan style=3D"display: inline-block;"> =E2=80=A2 </span><span styl= e=3D"display: inline-block;">1,596 sqft</span></p><p class=3D"highlight-spe= cs" style=3D"margin: 0; font-family: 'Montserrat', sans-serif; textdecorati= 1.45;" >5678 St2 Rd</p> <p class=3D"highlight-address" sty= le=3D"margin: 0; font-family: 'Montserrat', sans-serif; text-decoration: no= ne; color: #323232; font-weight: 500; font-size: 13px; line-height: 1.45;" = >City2, ST 6789</p><p class=3D"highlight-specs" style=3D"margin: 0= ; font-family: 'Montserrat', sans-serif; text-decoration: none; color: #323= 232; font-weight: 500; font-size: 13px; line-height: 1.45;"><span style=3D"= display: inline-block;">4 bd</span><span style=3D"display: inline-block;">&= nbsp;=E2=80=A2 </span><span style=3D"display: inline-block;">4 ba</spa= n></p><p class=3D"highlight-specs" style=3D"margin: 0; font-family: 'Montse= rrat', sans-serif; textdecoration: none; color: #323232; font-weight: 500; = 1.45;" >91011 St3 Rd</p> <p class=3D"highlight-address" style= =3D"margin: 0; font-family: 'Montserrat', sans-serif; text-decoration: none= ; color: #323232; font-weight: 500; font-size: 13px; line-height: 1.45;" >= City2, ST 10111</p><p class=3D"highlight-specs" style=3D"margi= n: 0; font-family: 'Montserrat', sans-serif; text-decoration: none; color: = #323232; font-weight: 500; font-size: 13px; line-height: 1.45;"><span style= =3D"display: inline-block;">4 bd</span><span style=3D"display: inline-block= ;"> =E2=80=A2 </span><span style=3D"display: inline-block;">2 ba<= /span><span style=3D"display: inline-block;"> =E2=80=A2 </span><s= pan style=3D"display: inline-block;">2,376 sqft</span></p><p class=3D"highl= ight-specs" style=3D"margin: 0; font-family: 'Montserrat', sans-serif; text=