Questions tagged [text-processing]
The text-processing tag has no summary.
18 questions
2
votes
2
answers
114
views
How can I use Awk to match multiple lines and then concatenate other fields?
How can I use Awk to match multiple lines and then concatenate other fields?
1 Gen 1 75
1 Gen 1:1 10
1 Gen 1:1 11
2 Exo 1:1-2 13
2 Exo 1:1-2 14
3 Num 1:1-4 ...
4
votes
5
answers
1k
views
How to remove parts of all file paths in a .m3u playlist with Notepad++?
This concerns the contents of an .m3u file:
#EXTM3U
#EXTINF:356,Zerb, Ty Dolla $ign, Wiz Khalifa - Location (The Funkmoore Brothers' Hard House Edit)
E:\Contents\Zerb, Ty Dolla $ign, Wiz Khalifa\...
-1
votes
1
answer
134
views
How to correct punctuation with a regex in Notepad++?
My sample text is this:
This is a demo . Of all the places you want to go here! Superb work !
Is your name John ? Or is it that you are hiding your name? Seems to be a good work.But as you know this ...
3
votes
1
answer
155
views
In Notepad++/Sublime Text 3, how do I make all text lowercase by regex, but only if specific phrase occured in the line?
Say I have text like that:
models/players/clonespac/CloneTorsoLieutenant
{
q3map_nolightmap
q3map_onlyvertexlighting
{
map models/players/clonespac/CloneTorsoLieutenant
...
1
vote
1
answer
2k
views
How to use wildcards to delete all text between two characters in Word?
I've been able to figure out some simpler wildcard searches before but this one is kicking my butt and I'd love some help.
Here's some of the text in my MS Word document:
decidere v1 (v11)
decido, is,...
1
vote
1
answer
592
views
How to remove duplicated text on every line using Notepad++?
I want to remove duplicated words in each line using Notepad++.
Example:
Flooring Services, Carpet, Flooring Services, Tile, Flooring Services
In the above, Flooring Services is repeated 3x. I only ...
3
votes
4
answers
461
views
Select all lines of maximum 12 words that end that do not have any punctuation at the end
I want to select all lines of maximum 12 words that end that do not have any punctuation at the end.
Example:
Love's Equal On Earth
In a moving "in" and "out of focus" image, what ...
0
votes
2
answers
250
views
How to isolate portion of string and remove excess in Notepad++ using regex?
I am attempting to isolate a particular section of a line, and delete everything else after it.
Below are some example strings on what the general formatting of the file looks like. Each one of these ...
3
votes
1
answer
317
views
How do I automate tasks in EmEditor?
Does EmEditor have a way to automate a workflow? My workflow involves a sequence of commands that could easily be automated if there was a way to do so.
-1
votes
2
answers
1k
views
Convert wrapped lines to single lines
I have a large file with wrapped lines:
0
0.000 1.1 2.2 3.3 4.4 5.5 6.6 7.7
8.8 9.9 10.10 11.11
5
0.000 1.1 2.2 3.3 4.4 5.5 ...
0
votes
0
answers
49
views
Increment numbers for matching text in Notepad++ [duplicate]
In Notepad++, is it possible to find a particular tag in the file and increase the value by 1 for each successive tags, once the value in the first tag is entered? For example:
<p id="pg-1&...
8
votes
2
answers
30k
views
Visual Studio Code shortcut to wrap HTML element into container tag
When you have an HTML tag and you want to wrap it into another HTML tag, what is the fastest/easiest way to do so? Since it happens quite often, I'm looking for a way to optimize it.
Currently, it ...
1
vote
2
answers
2k
views
In Notepad++ How can I identify/count records that don't meet a certain length requirement?
I have a file in Notepad++ that has 200,000 rows and each row needs to be a certain length (2500). However I know some rows are shorter or longer than that. How can I find out how many rows are ...
0
votes
2
answers
1k
views
Use PCRE2 Regex to group phrase before colon AND group comma separated values
I have what seems to be a simple task but isn't working for me. Using only PCRE2 Regex (nothing else), I am trying to collect a phrase before the first colon at the beginning of a line, then separate ...
1
vote
1
answer
4k
views
"Pattern not found" message on found and highlighted pattern in vim
I have a fair number of PHP classes source files that I can list using the command grep -r "class " * with each file containing the class <MyClass> pattern.
For example, one such file ...