Java regular expression "( *|)": what does the pipe do? : <p>I'm studying a Java code that uses the regular expression <code>"( *|)"</code>. What does the pipe do in this expression?</p>

<p>So far I understood it works the same way as the expression for a group of optional spaces, i.e. <code>"( *)</code>.</p>
