So if you are comparing apples-to-apples, the C# is about 20% faster than Java for the same basic test jig when using string.Contains. This suggests that the C# Regex compared to Java Regex is even more than 5x slower. Are you using .NET Regex in Java (J#), or Sun Java and its built in library version of Regex? Sorry if that sounds stupid, I am not a Java or J# user. Regardless, there are many flavors of Regex and so will their performances will differ. Les Potter, Xalnix Corporation |