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 7882713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:20:59+00:00 2026-06-03T04:20:59+00:00

I have a lot of text data with different structure. I need to extract

  • 0

I have a lot of text data with different structure. I need to extract parts of these texts based on some text-based rules. I would use regular expressions but unfortunately the people who are using the application have never heard of it.

Basically the app does the following thing:

  1. Load the data into a textbox
  2. Type the structure of the output as a simple set of rules into another textbox
  3. Receive the results in a 3rd textbox

Examples of data structures (I have megabytes of this data):

Label1: value1, measurement
Label2; value2; something else
Nr, value3 (comment)
...

I need some other approach that I could use instead of regular expressions. It can be extremely simple because all I need is one value from every row.

From the example above I have to obtain the following structure:

"value1, value2, value3"

Is there a simpler alternative to regex? Did someone already implement something like this?

I can also imagine that I am approaching the problem from the wrong angle, like forcing the simple user to write data extraction rules. In this case the question is transformed to something more generic like “How can build an application that lets a very simple user extract data from a separate texts?”

Edit:
I have the following simplest as possible matching implemented for them:

File content:

"Strain at break Ax2";"Unknown"
"Strain at break Ax1";"Unknown"
"Strain at break";"Unknown"
"Yield point strain";"Unknown"
"Uniform elongation";25.4087;"%"
"Tensile strength";261.323;"MPa"
"End test phase Yield point";1;"%"
"Maximum tensile force";5.22647;"kN"

Pattern:

"Tensile strength";(?<value>[^;\n]*);
"Maximum tensile force";(?<value>[^;\n]*);

Still too complex. The problem is if I start replacing the ugly part with another string to obtain for example:

"Tensile strength", [First value after]

I loose all the generic nature of the extraction because every file looks different from this one.

  • 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-06-03T04:21:00+00:00Added an answer on June 3, 2026 at 4:21 am

    I have solved the issue by defining the rules as regular expressions. After the rules were defined I defined a wrapper rule-set that was easier to read by the users.

    Ex. to extract a value from a line

    Maximum amount of Sheet Drawing Force= 35.659695[kN]
    

    I defined the regular expression

    {0}=\s*(?<value>[^[\n\r]*)
    

    then let the user define the name of the field. The {0} placeholder was then replaced with the name of the field and the regular expression applied.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a lot of text data and want to translate it to different
I have a table with a lot of text inputs like these: alt text
I have an ArrayCollection named authors with lot of texts of different size. I
I have a JLabel which has a lot of text on it. Is there
I have an text outline tree where i display a lot of information There
I am creating Excel file download using NOPI libraries. I have lot of data
I am trying to build a data mart. I have lot of dimensions, and
let's get some different points of view about this situation I have. I'm creating
I have a lot of information distributed among some tables in a database (and
I have some XML that stores column information and row data from a table

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.