Conversation started Sep 14, 2021 at 5:56.
pVC aecidiospore adduced
Sep 14, 2021 05:56
regex101.com/r/vDoSkt/1
^ how do i make that so it doesnt prepend spaces if the letter is in front of a letter say
K
so
Kh
-> ` Kh `
and
kh
-> ` k h `
a...anyone?
Bubbler
Should it be a single regex? Also, are you really intending to use
" \1 "
(prepend and append a space for each matched char, so you get two spaces between two matched chars)?
emanresu A
Just write a parser
pVC aecidiospore adduced
Sep 14, 2021 06:15
@emanresuA why?
@Bubbler yes
@emanresuA i am using regex to simply
also power went he=e
emanresu A
@pVCaecidiosporeadduced Trust me - if you have to think about how to do something with regex, you shouldn't do it with regex.
Bubbler
Maybe
this
?
pVC aecidiospore adduced
@emanresuA oof ok
i wont do it this way then
emanresu A
Since this is for 51AC8, you may as well incorporate it into your parser.
pVC aecidiospore adduced
@Bubbler bruh its that simple
@emanresuA whats 51AC8?
emanresu A
Sep 14, 2021 06:21
Oops, Dinoux
Razetime
@pVCaecidiosporeadduced the best stack language
pVC aecidiospore adduced
@Razetime ^_^
i changed its name
@Razetime and it doesnt have support for strings
cause its not necessary
Razetime
yeah strings really are useless
emanresu A
@pVCaecidiosporeadduced ಠ_ಠ
@Razetime Wdym?
Razetime
you read that right
emanresu A
Sep 14, 2021 06:24
How would you express the lowercase alphabet, for example, then?
pVC aecidiospore adduced
@emanresuA wht?
@emanresuA use its ascii value
emanresu A
True...
pVC aecidiospore adduced
Tt
Pop and: Print top as character(s), print top
@emanresuA to swap the case xor it with 32
emanresu A
But having a new datatype allows for string-specific overloads, such as regex stuff.
pVC aecidiospore adduced
@emanresuA regex?
Razetime
Sep 14, 2021 06:27
stax has regex and it doesn't have dedicated strings
pVC aecidiospore adduced
you can use a numerical regex
emanresu A
How would regex work on something like
[-1,35,3e+143]
?
pVC aecidiospore adduced
@Razetime
Conclusion:
Strings are useless.
@emanresuA use dofferent regex syntax
so
32
matches a space
emanresu A
How do you compress strings?
pVC aecidiospore adduced
and
[32, -2]
matches one or more spaces
emanresu A
Sep 14, 2021 06:31
I give up
pVC aecidiospore adduced
@emanresuA heh, use a numerical compression algorithm
get a substring => get the subarray
Conversation ended Sep 14, 2021 at 6:31.
all rooms
Strings are useless.
Sep '21
14
The Nineteenth Byte
The Nineteenth Byte: General discussion for
codegolf.stackexc...
12
6
context of the conversation
join this room
about this room
Participants
pVC aecidiospore adduced
61%
emanresu A
25%
Razetime
8%
Bubbler
4%
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile