Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E3D018EBF for ; Fri, 24 Jul 2015 09:26:05 +0000 (UTC) Received: (qmail 59071 invoked by uid 500); 24 Jul 2015 09:26:05 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 58979 invoked by uid 500); 24 Jul 2015 09:26:05 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 58967 invoked by uid 99); 24 Jul 2015 09:26:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Jul 2015 09:26:05 +0000 Date: Fri, 24 Jul 2015 09:26:05 +0000 (UTC) From: "Saif Asif (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (LANG-1156) RegexUtils - A utility class for common regex based operation MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LANG-1156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14640200#comment-14640200 ] Saif Asif commented on LANG-1156: --------------------------------- Agreed. I'll come up with some more examples and code snippets to better explain it. > RegexUtils - A utility class for common regex based operation > ------------------------------------------------------------- > > Key: LANG-1156 > URL: https://issues.apache.org/jira/browse/LANG-1156 > Project: Commons Lang > Issue Type: New Feature > Components: lang.* > Reporter: Saif Asif > > It would be nice to have a utility class for basic regex operations. Some of the features that it may contain > * some basic regex patterns and their application methods > ** e.g a robust csv parser, or fetch keys and values from key1=value1,key2=value2. Instead of writing up regexs, one can use these utility methods > * apply a pattern on a string > * retrieve certain groups based on a particular criteria > * escape certain characters in a string > Class can look like > {code:title=RegexUtils.java|borderStyle=solid} > public static final CSV_SPLITTER_REGEX = "someRobustPattern" > public static final String getCsvSplitterRegex(String delimiter){ > return "delimiterSpecificPattern"; > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)