You have extra spaces around the |
operator:
Your original regex
^.+.((jpeg)|(gif)|(png))s*$ | ^.+(javax.faces.resource|rfRes).*
^.+.((jpeg)|(gif)|(png))s*$|^.+(javax.faces.resource|rfRes).*
Fixed regex ^
|
Your solution will try to match "the end of the string and then a space," or "a space and then the beginning of the string." Remember, whitespace is significant in regexes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…