Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7562289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T13:22:45+00:00 2026-05-30T13:22:45+00:00

Based on http://checkstyle.sourceforge.net/config_regexp.html I am trying to find hard coded occurance of same strings.

  • 0

Based on http://checkstyle.sourceforge.net/config_regexp.html

I am trying to find hard coded occurance of same strings. Which are repeated.

It returns me all the lines that have hardcoded string but it does not seem to care about “minimum” property.

I just need one which occured more then once. Here is my custom check

    < module name="RegexpSinglelineJava">
        < property name="format" value="&quot;*&quot;"/>
        < property name="minimum" value="2"/>
    < /module>    

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T13:22:47+00:00Added an answer on May 30, 2026 at 1:22 pm

    The minimum property is not a count of equal strings:

    minimum       The minimum number of matches required in each file.
    

    You could use an expression like:

    (?s)("(?:[^"\\]+|\\.)*")(?=.*?\1)
    

    With RegexpMultiline. Altho that may not be very efficient.

    Something like:

    <module name="RegexpMultiline">
      <property name="format" value='(?s)("(?:[^"\\]+|\\.)*")(?=.*?\1)'/>
    </module>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Based on http://www.thinkingguy.net/2010/01/localizing-labelfor-in-aspnet-mvc-2.html I'm trying to use reflection to get to a string property
Based on http://alexreg.wordpress.com/2009/05/03/strongly-typed-csv-reader-in-c/ , I created a DLL which can read different file types.
Which popular websites out there support an HTTP based API? I am looking for
I'm working on a web based application which uses a JSON over HTTP based
Seeing this: http://www.suckless.org/wiki.html . A wiki based on Mercurial. Are there any other non-code
Based on http://ant.apache.org/manual/Types/mapper.html Here's my target: <target name=ms.copy-example> <copy todir=${ms.custom}> <fileset dir=${ms.example}> <include name=build.xml
I am trying to write some generic linqtoSQL which performs operation on entities based
I am trying to implement a HTTP based chat here. All the chat messages
Based on http://www.mredkj.com/javascript/nfbasic2.html , following code will result in 5.6e+2 . num = 555.55;
Based on http://tutorialzine.com/2011/06/beautiful-portfolio-html5-jquery/ tutorial I am trying to implement a sort function to my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.