diff interface/load_regex.php @ 0:b12c99b7c3f0

commit for previous development
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 19 Jan 2015 17:13:49 +0100
parents
children 63e08b98032f
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/interface/load_regex.php	Mon Jan 19 17:13:49 2015 +0100
@@ -0,0 +1,12 @@
+<?php
+
+$returnArray = array();
+$files1 = scandir("regex_files");
+foreach ( $files1 as $file ) {
+	if ( $file != "." && $file != ".." ) {
+		$returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file );
+	}
+}
+
+echo json_encode($returnArray);
+?>
\ No newline at end of file