Revision 2425

tmp/org.txm.utils/src/org/txm/utils/AsciiUtils.java (revision 2425)
134 134

  
135 135
		String rez = convertNonAscii(s).toLowerCase();
136 136
		rez = rez.replaceAll("\\p{Space}++", "_");
137
		rez = rez.replaceAll("[¤€§µ£°().,;:/?§%\"'*+\\-}\\]\\[{#~&]", ""); //$NON-NLS-1$ //$NON-NLS-2$
137
		rez = rez.replaceAll("[¤€§µ£°().,;:/?§%\"'*+\\-}\\]\\[{#~&]", ""); //$NON-NLS-1$ //$NON-NLS-2$
138 138

  
139 139
		return rez;
140 140
	}
......
165 165
		String rez = convertNonAscii(s).toLowerCase();
166 166
		rez = rez.replaceAll("\\p{Space}++", "_");
167 167
		rez = rez.replaceAll("_", "-");
168
		rez = rez.replaceAll("[¤€§µ£°().,;:/?§%\"'*+\\}\\]\\[{#~&]", ""); //$NON-NLS-1$ //$NON-NLS-2$
168
		rez = rez.replaceAll("[¤€§µ£°().,;:/?§%\"'*+\\}\\]\\[{#~&]", ""); //$NON-NLS-1$ //$NON-NLS-2$
169 169
		// remove first chars if number
170 170
		char c = rez.charAt(0);
171 171
		while (c == '0' || c == '1' || c == '2' || c == '3' || c == '4' || c == '5' || c == '6' || c == '7' || c == '8' || c == '9') {

Also available in: Unified diff