<?php$regex = '~(?<=[a-zA-Z])(?=[A-Z])~';echo strtolower(preg_replace($regex,"-","HelloWorldThisIsATest"));
Standard input is empty
hello-world-this-is-a-test
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!