JavaScript Text from match (case-insensitive) Online
Substring from first case-insensitive match.
Run details
The output updates as you type. The tool processes input in your browser.
Worked example
Use Before needle to extract the prefix, or clear the option to return the match and the text that follows it.
- Needle
"plus"- Before needle
false
Manuals Plus
Plus
Using this operation in JavaScript
The interactive result uses JavaScript. JavaScript string indexes count UTF-16 code units. Use code-point iteration when working with supplementary Unicode characters.