I know this isn’t kotlin related but anyone here g...
# announcements
b
I know this isn’t kotlin related but anyone here good with regex that can help me out?
d
sure
b
Copy code
#{BOLD:Pumpkin and Orange}\r\nGrow combines sparkling
trying to come up with a regex rule to capture everything between # and the linebreak
have this so far
#(.*?)\r\n
but doesn’t seem to work 😞
d
\r\n
matches carriage return and line break respectively. if you actually want to match the characters
\r
and
\n
you need
\\r\\n
☝️ 1
Also: https://regexr.com/ is a great tool
b
Thank you 🙏🙏🙏
this site is amazing btw
d
Yes, doing regex without it is just masochistic 😄
r
@Brian Estrada For future note, you should have non Kotlin related discussions in #random.
b
@Ruckus thanks for the heads up 🙂
👍 1
h
([^#]+)(?=\\r\\n)