explained.action = perl_pattern.match(/([ms]?)\ 
explained.action = perl_pattern.match(/([ms]?)\ 
function cbonar_regex_explainPerlRegexPattern( pattern ){	var explained = new Object();	var perl_pattern = asPerlRegexPattern(pattern);	explained.action = perl_pattern.match(/([ms]?)\//)[1];	// we can do that because we previously added (possibly) missing slashes in asPerlRegexPattern	switch ( explained.action )	{		case "s":			var user_pattern = new RegExp("s/(.*)/(.*)/([^/]*)","i").exec(perl_pattern);			if ( user_pattern != null )			{				explained.pattern = user_pattern[1];				explained.replace_string = user_pattern[2];				explained.modifiers = user_pattern[3];			}			break;		case "":		case "m":			var user_pattern = new RegExp("m?/(.*)/([^/]*)","i").exec(perl_pattern);			if ( user_pattern != null )			{				explained.pattern = user_pattern[1];				explained.modifiers = user_pattern[2];			}			break;	}	return explained;}
10215	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10215/51a35822627445984408265975036a99fb83a668/regex.js/buggy/trunk/src/regex.js