I'm trying to replace some characters in a string with their uppercase/lowercase equivalents in Atom Editor.
Let’s say I have the string:
some:test:sequence
and want the result:
Some:Test:Sequence
I’m aware of things like u$1
and l$1
, but they do not work in Atom, as Atom is using JS-style RegEx. The JS-RegEx solutions I found, however, always involve calling a function (see example here), which is not possible in Atom, afaik.
Does anyone know if there is a way to achieve this? I also don’t mind installing a package for a more powerful regex search/replace, but haven’t found one and I’d like to avoid writing one on my own just for this.
Please note: I’m not looking for a solution to find/select the characters. The selection works just fine and is a bit more complex as in the example.
question from:
https://stackoverflow.com/questions/28673382/atom-editor-regex-replace-to-uppercase-lowercase 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…