src/main/java/ca/phon/plugins/praat/script/PraatScriptParams.java
/**
	 * Extract script param section from given text
	 * 
	 * @param text
	 * @return param section if found
	 */
Extract script param section from given text

@param text
@return param section if found
Extract script param section from given text @param text @return param section if found
public static String extractParamSection(String text) {
		final Pattern pattern = Pattern.compile(PARAM_REGEX, REGEX_OPTIONS);
		final Matcher matcher = pattern.matcher(text);
		if(matcher.find()) {
			return matcher.group(1).replaceAll("#", "");
		}
		return null;
	}
public static String extractParamSection ( String text ) { final Pattern pattern = Pattern . compile ( PARAM_REGEX , REGEX_OPTIONS ) ; final Matcher matcher = pattern . matcher ( text ) ; if ( matcher . find ( ) ) { return matcher . group ( 1 ) . replaceAll ( "#" , "" ) ; } return null ; }
Extract script param section from given text
Extract script param section from given text