I cleaned it up a little. I'm not sure how you wanted the result to look like (Did you really want to extract the slash? Does the name always contain BMDL and DEV? etc. ...). But maybe this can help.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.