robindijkhof / overleaf-textarea

This plugin displays your tex source in a textarea so plugins like grammarly can check it.
GNU General Public License v3.0
513 stars 31 forks source link

Replace field function to uppercase matched RegEx content #77

Open ClaudioCimarelli opened 2 years ago

ClaudioCimarelli commented 2 years ago

Hello, The capabilities of this plugin are close to perfection. So thank you very much for your efforts. I would like to know if it's possible to insert in the replace field a function to, for example, change the content of a matched Regular Expression to all uppercase or other simple kinds of string manipulation.

Thank you again, Claudio

robindijkhof commented 2 years ago

As of now, this is not possible. Though, it might be possible to do uppercase manipulation with regex.

ClaudioCimarelli commented 2 years ago

Thank you for your reply. Could you explain to me what you mean? From what I could see, the replace field takes only simple strings, not regex. For example, I noticed that, in other systems, it should be possible to use \U to uppercase a matched string (https://stack.imagetube.xyz/318/how-to-replace-uppercase-with-lowercase-letters-in-regex).

Thank you again.

robindijkhof commented 2 years ago

I don't see why that wouldn't work. Check the examples in the readme.