Do translations and any text transformations with regex replace!
Super Replace is an advanced regex replace tool which allows you specify additional text processing function when replace.
Demo 1: Translate matched texts to Chinese.
Demo 2: Extract option texts from HTML source code, and convert them to lower case.
We know that, with regexp replace, we can use
Super Replace extends the capability by using
The foregoing processed matches are outputs of the function given here. It recieve sub matches as input, and could be either "(texts: string)=>strings" or "(text: string)=>string".
For example, find
Super replace provides another action called
It's useful while extracting matched texts from mass texts. To simply understand it, we can take it as an action that remove all unmatched texts after replace.
If you want to translate, you need a Google Cloud Translate API Key and configurate
Reference: Language Support by Google Translate
Please post and view issues on GitHub