0
votes
1answer
49 views

Find duplicate phrases - any tool or regex

I've got a long document, and I suspect that some phrases (one or multiple sentences) are identical or at least similiar. Is there some way to find these repetitive phrases? Some tool or regex?
1
vote
0answers
34 views

TextAnalysisTool.NET equivalent for OS X

I've used TextAnalysisTool.NET in the past for analyzing log files on Windows machines and found it incredibly useful. I love the simplicity+power that it achieves for dynamically grepping log files, ...
0
votes
0answers
22 views

TextWrangler 4.5.3 (3310)

I've got a huge batch of XML that has an element order problem, and instead of writing XSL to correct the import, I wonder if I can reorder the elements within TextWrangler? I need to select the ...
1
vote
1answer
143 views

Fast Regex (Regular Expression) Replacer (offline program) [closed]

I often have to manipulate large text files with regular expressions. For example, just yesterday I had to modify a 157MB file to reformat a list of ~1.6 million lines of TSVs to move one of the ...
0
votes
3answers
83 views

How to extract the first N words of each paragraph in a text? [closed]

Could you please tell me how could I extract the first N (e.g. 30) words of each paragraph in a text? Maybe with a regex?
1
vote
1answer
43 views

Automatic replacement of expressions

Maybe this can be achieved through (extended) regular expressions, but I really don't know if or how. There seems to be a way to access "things that are found" by using $1, $2, … but I have no idea ...
0
votes
2answers
584 views

Regex find-replace big file [duplicate]

Possible Duplicate: Is there a text editor for very big files? I need to find a text editor that can replace a regex in a 250MB file without crashing. I tried: EditPadPro NotePad++ Is ...
0
votes
1answer
485 views

Regular Expression to replace part of URL in XML file

I need a regular expression in Notepad++ to search/replace a string. My document (xml) has serveral thousand lines that look similar to this: <Url ...
3
votes
3answers
681 views

Deleting Duplicated Lines In TEXT File?

I am trying to cleanup a text and for some reason every line duplicated 3 times am i able to get ride of duplicates with regex or tricks or do you know a software which could do that , text file is ...
1
vote
1answer
170 views

create multiple files from single text file based on headings

I have what I think is a really simple problem to solve (preferably with OS X / *nix terminal tools rather than windows command line). I have a manuscript formatted in markdown with # (H1) denoting ...
11
votes
3answers
2k views

Substitution in text file **without** regular expressions

I need to substitute some text inside a text file with a replacement. Usually I would do something like sed -i 's/text/replacement/g' path/to/the/file The problem is that both text and replacement ...
1
vote
2answers
320 views

How to show regexp parts of text

I've lots of files which lines looks like lotsofblah/XY##_####_morefoo where # is a number. Now i want to show only the parts YZ##_#### in the bash, each in a new line of course.
1
vote
4answers
1k views

using sed to remove lines in a file

I have a file that looks something like this: Heading - - Completed foo - More information - Still more * Need to complete bar - Did baz (comment blah blah) *** Another - * Need to ...