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

  • Home
  • SEARCH
  • 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 1010091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:01:42+00:00 2026-05-16T09:01:42+00:00

/** Constant <code>IDX_USER=IDX_+ USER_ID</code> */ I have several lines of code which was generated

  • 0
/** Constant <code>IDX_USER="IDX_+ USER_ID"</code> */

I have several lines of code which was generated by javadoc and show up something like the above. I would want to find all lines starting with /** Constant IDX_ and all the way to the end of the line.

How should I do this? Will be using the regex search and replace capability in Eclipse to manipulate the modifications

  • 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-16T09:01:43+00:00Added an answer on May 16, 2026 at 9:01 am

    You can use the special character ^ to indicate that your regular expression starts at the beginning of a line. For example, given your regex, you could search for:

    ^\/\*\* Constant IDX_
    

    You probably also want to allow whitespace prior to the comment. The regular expression [ \t]* will match zero or more spaces or tabs, making the following regular expression:

    ^[\t ]*\/\*\* Constant IDX_
    

    match anything starting with /** Constant IDX_ (allowing whitespace at the beginning of the line).

    If you want the entire line (perhaps to capture the contents of the comment after your regex, you can use $ to indicate the end of a line, and . to match any character. Combine this with * (to indicate zero or more occurences), and you’ll end up with:

    ^[\t ]*\/\*\* Constant IDX_.*$
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code sample, which produces an error with the included constant
I have used constant co-ordinates in code in several places in my iPhone app,
What does Ruby constants really mean? The following code doesn't show any 'constant' attribute.
I have been writing code without realizing WHY I can access constant values within
If I have a constant with name SomeConst (in UpperCamelCase form) in my code
I have a constant for pi in my code: const float PI = acos(-1);
Is it possible to use a constant defined by the compiler in code like
In my c# code, I have a constant: SITE_NAME = my site; I have
I would like to define in my code a constant holding the date on
I have this code: class A def print puts CONSTANT end end module B

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.