Regular Expression! Help me.

Could someone help me about this? I want to use Regex. Ex: 'thisismyregex' ---> 'this is my regex' or 'ThisIsMyRegex' ---> 'This Is My Regex'

8/14/2018 11:45:22 AM

Hoang Anh

5 Answers

New Answer


A good way to try out your regex is to use www.regex101.com Supports Perl/PHP, Python, JavaScript and GoLang


var input = "ThisIsMyRegex"; re = /([A-Z][a-z]+)/; var output = input.split(re).join(' '); console.log(output); https://code.sololearn.com/W0iGefVbd11c/?ref=app


It's like, if the program encountered a word, add a space after it?


oh yeah. Thank you guys!


Read on regExp on sololearn or Javascript. Info