Questions tagged [text-processing]
16 questions
8
votes
2 answers
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 involves the following steps:
Creating the new HTML…
Simon Ferndriger
- 513
3
votes
1 answer
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
blendFunc GL_ONE GL_ZERO
rgbGen…
3
votes
4 answers
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 you see is what you want to believe about yourself.
I love the…
Hellena Crainicu
- 129
3
votes
1 answer
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.
MakotoE
- 283
1
vote
1 answer
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 want to keep one (1) Flooring Services.
I looked…
Matt Lance
- 19
1
vote
2 answers
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 lines I am attempting to isolate the…
Grant Hood
- 13
1
vote
2 answers
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 breaking this rule and which rows those are?
MIGUEL
- 11
- 3
1
vote
1 answer
"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 pattern.
For example, one such file contains:
Stephane
- 205
1
vote
1 answer
PowerShell: In a text file, make this line part of the previous line
The circumstances that lead to this request are not hugely important (read: please don't give me pointers on how to avoid this situation, I have tried them) but I have an engine producing text files. As an example, these files normally look like…
seagull
- 6,216
- 10
- 33
- 42
0
votes
1 answer
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 punctuation is not correct. ( this is not correct)…
Shahid
- 147
0
votes
1 answer
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, ere, cidi (63) : to fall/drop/hang/flow down;…
Joel Derfner
- 113
0
votes
0 answers
Increment numbers for matching text in Notepad++
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:
1
should look as:
0
votes
2 answers
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 and place within the same group all the comma…
Tushar Bhutt
- 35
0
votes
1 answer
Regex to filter the value and show less than required version number
We have docker tags with below versions, please help to share the regex pattern to filter the records that are older than below values. For example, should show old tags - 23.0.0.17 and older, 23.0.0.17_acme.17.xxxxxxx and older,…
hare krshn
- 101
-1
votes
2 answers
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 6.6 7.7
8.8 9.9 10.10 11.11
I…
Julio
- 1