Regular Expressions: Capturating dimensions of a screen
Problem:
Using regular expressions, capture the dimensions of a video or a screen.
Output:
Solution:
Since we don't if the dimension will be three or four dimensions. Using the "+" sounds appropriate here.
So:
\d+x\d+
Capturing what you need:
(
\d+
)
x
(
\d+
)
1 comment:
Assam
April 30, 2026 at 12:18 AM
With a
math calculator
, even complicated formulas become easier to manage and understand.
Reply
Delete
Replies
Reply
Add comment
Load more...
‹
›
Home
View web version
With a math calculator, even complicated formulas become easier to manage and understand.
ReplyDelete