https://kotlinlang.org logo
#getting-started
Title
# getting-started
i

Ink

03/22/2023, 3:41 PM
Copy code
<?xml version="1.0" standalone="yes"?><svg version="1.1" width="383" height="383">
How I can get
width
and
height
value using Regex?
😱 1
😶 4
chat gpt 1
s

Sam

03/22/2023, 3:42 PM
Are you asking how to write the regex pattern, or how to use a regex pattern in Kotlin? If you want help writing the pattern, this is probably not the right place to ask
p

Paul Griffith

03/22/2023, 3:43 PM
🐴 1
🏆 1
🎉 1
1
(yes, pedants, in constrained scenarios regex is a fine tool for this job, but the better, more maintainable option is still going to be a proper XML parser)
t

Ties

03/22/2023, 7:19 PM
This website helps me a lot: https://regexr.com/. and this is a great and fun way to learn regex https://regexcrossword.com/ :)
y

Youssef Shoaib [MOD]

03/22/2023, 8:45 PM
This really doesn't belong here on the Kotlin slack. I'd suggest you either ask this in #random or on Stack overflow so that you're more likely to get a correct response
6 Views