RegEx
-
Java: How to extract lines matching a pattern from text file
Here’s some code I wrote in java to extract filepaths from a log file: import java.io.*; /** * Created by amitabh on 12/14/15. */ import java.util.regex.Matcher; import java.util.regex.Pattern; public class ReadFile { public static void main(String[] args) throws Exception { //String folderPath = “U:\\Upgrade_DMFileReport_Compare\\dm_FileReport-EDMS-Prod_Orig”; //String folderPath = “U:\\Upgrade_DMFileReport_Compare\\dm_FileReport-Legacy-Prod_Orig”; String folderPath = Continue reading
About Me
Senior Software Engineer professional with over 16 years of success with multiple open source technologies and various Content Management platforms and solutions.
Proven technical abilities through numerous projects involving enterprise web application design and development, application installation, configuration and support, and workflow and collaboration system designs.
- Ability to learn new technologies and platforms quickly and apply them to the task at hand.
- Excellent analytical skills, and strong communication and collaboration abilities.
- Technical emphasis in including but not limited to Java, Ruby on Rails, Documentum and Alfresco
in both Linux and Windows based environments