Em Andamento

Simple PHP Script/Regex to repair corrupt text file

I require a simple php script to repair a corrupt text file.

The file should do all of the following:

- Read from a text file

- Output to another text file

- Remove html tags and special characters

- Remove uneccesary alphanumeric characters i.e multiple stars/underscores

- Ensure all sentences begin with a capital letter

- Ensure all sentences begin with a word

- Sentences end with a full stop

- Insert paragraphs every given number of sentences

- Insert given words a specified number of times

- Short sentences are removed (less than 5 words)

- Essentially must be readable text

Note:

- Code must be well commented and easy to understand

- You must be available for ammendments if the code does not work

- The code must be able to work on large amount of data.

- Please indicate how long the script will take.

Sample Corrupt File:

------------------------

Mr Somemalefirstname Somesurname, 00001 *** Buckingham palace, London WC1. Joined date:14/01/2010. Somemalefirstname owns two cats and three dogs. Somemalefirstname favourite cat is billy the cat. 4Somemalefirstname * is married with 3 Children.1 ? </td>mrs Somefemalefirstname Somesurname, 00001 Buckingham palace, London WC1. 2Joined date:18/01/2010. Mrs Sarah blogs owns two cats and three dogs. __Somefemalefirstname's favourite cat is Tom the cat. Somefemalefirstna&me is married >with 3 Children"some short sentence.short.

Example Output:

------------------------

Mr Somemalefirstname Somesurname, 00001 Buckingham palace, London WC1. Joined date:14/01/2010. Somemalefirstname owns two cats and three dogs. Somemalefirstname favourite cat is billy the cat. Somemalefirstname is married with 3 Children.

Mrs Somefemalefirstname Somesurname, 00001 Buckingham palace, London WC1. Joined date:18/01/2010. Mrs Sarah blogs owns two cats and three dogs. Somefemalefirstname's favourite cat is Tom the cat. Somefemalefirstname is married with 3 Children.

------------------------

Remember than your script must also have the ability to insert chosen words a given number of times on the output.

Habilidades: PHP

Ver mais: regex is, regex example, regex c, php tags, capital times, blogs to read, php repair text, php script regex date text, repair text file, script words, regex &, word script, TOM, text file, short script, sarah, Regex, php regex, mrs, insert date, how to repair, easy-to-understand, data to text file, cats, c++ regex

Acerca do Empregador:
( 10 comentários ) London, United Kingdom

ID do Projeto: #868785

Premiar a:

yvayse01

check pm for details.

$30 USD em 0 dias
(4 Avaliações)
2.4
diegocr

Hello, please check your PM.

$30 USD em 1 dia
(12 Avaliações)
4.4

16 freelancers estão ofertando em média $71 para este trabalho

SigmaVisual

We can help in your project, please check PMB and our ratings/reviews to get idea of our experience.

$225 USD in 5 dias
(226 Comentários)
7.8
MarcusPan

Will be done fast!

$50 USD em 1 dia
(132 Comentários)
6.7
MAnkita

Hello,Please refer your [url removed, login to view] you.

$125 USD in 3 dias
(48 Comentários)
6.4
webmagics

Hi, Please see PMB for details. Thanks

$250 USD in 5 dias
(40 Comentários)
5.9
gangabass

I can do this job for you. See PM for details.

$30 USD em 1 dia
(96 Comentários)
5.7
stefanache

HI, Please see PMB to try the application. Thanks.

$30 USD in 0 dias
(15 Comentários)
4.8
developerphp2007

Please see PMB..

$30 USD in 0 dias
(11 Comentários)
4.4
BestPhper

please check you pm,thank you!!!

$50 USD em 1 dia
(8 Comentários)
4.3
amieshaiful

Ready to work.

$100 USD em 1 dia
(11 Comentários)
3.7
siteexpert

Hello Sir/Madam We will do that.. U can trust me.

$50 USD em 1 dia
(3 Comentários)
3.5
StrongDecs

Will be done.

$30 USD em 1 dia
(5 Comentários)
2.1
Ked

Coder from Russia ready to work. See PM.

$30 USD em 1 dia
(0 Comentários)
0.0
phpwebdevguru

PHP regular expressions. Very simple job. Can do it.

$40 USD in 2 dias
(0 Comentários)
0.0
bingo888

I can do this.

$30 USD in 2 dias
(0 Comentários)
0.0