Lukket

Simple python program to manipulate blocks of text

I have a file with aprox. 300k lines.

This file as the following type of structure:

regions

{

box6L-LRU8-HE

{

state (SIMPLE solid cht);

boundaryMesh

{

box6L-LRU08-HE

{

type wall;

}

}

turbulenceModel laminar;

materials (aluminium);

materialProperties

{

aluminium

{

materialName aluminium;

thermoType

{

type heSolidThermo;

mixture pureMixture;

transport constIso;

thermo hConst;

equationOfState rhoConst;

specie specie;

energy sensibleEnthalpy;

}

specie

{

nMoles 1;

molWeight 26.98;

}

thermodynamics

{

Cp 910.0;

Hf 0.0;

}

transport

{

kappa 167.0;

}

equationOfState

{

rho 2712.0;

}

}

}

and I need to be able to recognize regular expressions (i.e. *.-HE) and replace some specific block of text by another. Example: all blocks which contains *.-HE should have the following block:

equationOfState

{

rho 1982.0;

}

instead of

equationOfState

{

rho 2712.0;

}

This is one simple example of what I need. But it is everything similar to it.

The deliverable is the python script, written in such a way I can edit it later (make comments please). I will provide an input file and explain the output file that I want.

Evner: Python, Matematik, Software Arkitektur

Se mere: different parts simple java program, parts simple java program, simple mail program php, python text function, text in python, python print text, python print text and variable, python text() function, how to display text python, python code block example, python write to text file, duplicate simple flash program, simple tcp program, simple cnet program, simple unix program, ocr program convert bmp text, simple perl program, java simple gui program, asp simple email program, correct erroneous blocks text provide comments

Om arbejdsgiveren:
( 0 bedømmelser ) Romania

Projekt ID: #27865499

7 freelancere byder i gennemsnit $23 timen for dette job

IshaqKN

Hi there, Yes sure. I am expert in data processing and manipulation in Python. I'm advanced and expert user of regex. Yes will comment the code as well. I could be the best candidate! Best regards, Ishaq

$25 USD på 1 dag
(57 bedømmelser)
5.1
dandidarmawan

Hi! I have read all of your project's requirements for building a Python script to manipulating your text input file. I have done many of this kind of complex Python projects, and also the regular expression projects. Flere

$30 USD in 2 dage
(4 bedømmelser)
3.7
SeanJacobFox

Hello I am a Python master. I have used it for 10 years. This is an easy task. I will do it now. Regards Sean

$30 USD på 1 dag
(5 bedømmelser)
3.3
jj323d

Hi there, I would love to work on your project with the strong skills needed for the project. However I have to clarify few more questions which can be discussed to get scope locked. Please initiate chat to move fur Flere

$20 USD in 7 dage
(0 bedømmelser)
0.0
Martica199005

Buna, ma numesc Marta si sunt noua aici dar am 2 ani de experientia cu Python. As vrea sa te ajud cu proiectul tau folosind abilitatile mele. Scrie-ma Hi, my name is Marta and I'm new here but I have 2 years of exper Flere

$15 USD på 1 dag
(0 bedømmelser)
0.0
peresthayalig

Hello, I can realize the project you want with python programming language. Once I have detailed the project fully understandable I can begin. I think I will not have much difficulty as my area of expertise is image pr Flere

$20 USD på 1 dag
(0 bedømmelser)
0.0
SarthakKulavi

Best candidate as i have worked on similar project. I have created files and also made a system to be able to detect regular expressions and if user wants can replace it with the desired one.

$21 USD in 10 dage
(0 bedømmelser)
0.0