WizardRandom
@WizardRandom
Wed, May 31, 2023 2:50 PM
1
[Work] that moment when '\\\\\\\\+|\\\\\\\\-' is what you need to input to indicate '+|-'
Being a programmer is weird.
ĴÎŊ𝟡ŁȜ ☯ Ħ三ĿĿŠ
@KabochaKitsune
Wed, May 31, 2023 4:59 PM
...okay I know just enough css to know that backslashes can indicate "this is not code" but what do +| do that would fuck with a code line?
ĴÎŊ𝟡ŁȜ ☯ Ħ三ĿĿŠ
@KabochaKitsune
Wed, May 31, 2023 5:00 PM
(I literally only know enough css to fix visual errors on plurk and tumblr)
WizardRandom
@WizardRandom
Wed, May 31, 2023 5:00 PM
Okay. this is part of a regular expression, which is a way to filter and match strings. the + ands - are reserved characters, to in the regex string, you'd typically put in \+|\- as the \ is the escape character
WizardRandom
@WizardRandom
Wed, May 31, 2023 5:01 PM
the \ character is a reserved character justr about everywere else, so typcially you indicate the \ with \\.
.... and from there it's turtles all the way down.
ĴÎŊ𝟡ŁȜ ☯ Ħ三ĿĿŠ
@KabochaKitsune
Wed, May 31, 2023 5:02 PM
...oh jesus
ĴÎŊ𝟡ŁȜ ☯ Ħ三ĿĿŠ
@KabochaKitsune
Wed, May 31, 2023 5:03 PM
that seems so kludgy
WizardRandom
@WizardRandom
Wed, May 31, 2023 5:04 PM
Yup
載入新的回覆
Being a programmer is weird.
.... and from there it's turtles all the way down.