#regex

1 messages ยท Page 1 of 1 (latest)

surreal knot
#

@rare swift try this ^([a-z])

#

that should detect first letter is lowercase

rare swift
#

detecting is fine, but i don't know how to replace with its uppercase counterpart

surreal knot
#

replace with ^([A-Z]) trolla

#

I dont think this works how i think it does

#

so sad

vast ether
#

not possible

surreal knot
#

sed 's/^\([a-z]\)/\U\1/'

rare swift
#

i tried \U

#

it puts a literal \U

vast ether
#

it's not possible

#

like I said

#

don't bother

#

I considered adding Javascript replacement rules but scratched it due to security concerns

surreal knot
#

pfft who cares about security am i right

torn fractal
#

just add 26 separate rules for each lowercase letter

vast ether
#

TRUE LMAO

twin radish
rare swift
torn fractal
#

How dare you speak a language that uses accents

gritty sierra
#

< : : for each letter. : : >