How to use regular expressions in java in order to format and cleaning the files...
1
Expert's answer
2015-12-26T06:52:36-0500
We will consider a simple template for comparison of the file and breaking up of him name to pieces: name and expansion, dissociated from each other a point: .*[.].*$. Symbol . requires the special brackets, as a point is metacharacter, that evidently in this expression. Also we will mark final $; he is added in an order to provide plugging in expansion of all remain of line. For the exception of bat expansion: .*[.](?!bat$).*$.For the exception of bat and exe expansion:.*[.](?!bat$|exe$).*$
Comments
Leave a comment