It uses a simple two-pane code view and rendered Markdown view to display changes in real-time. Plus it has the ability to tweak editor appearance including line spacing and base font. Plaintext editors for Mac The Best Mac Text Editors to Use in 2018 The Best Mac Text Editors to Use in 2018 Need a new text editor for your Mac? TextEdit offers powerful rich text formatting options. But sometimes it’s best to use TextEdit Plain Text Mode, which eliminates all formatting and, you guessed it, produces only plain text.
Active1 year, 5 months ago
Good evening
I have got a question about some text editor. I am using CotEditor on Mac and I want to find and replace something special. I have an .csv data which I converted as an .txt data with numbers. In this list there are some kind of special words which I want to find and delete all other words.
For example:
or
I want to filter all @*!
Background is I want to follow some tagged sites on Instagram and do not want to klick each pic and follow.
Can someone help me?
SporeTinte049SporeTinte049
![Text Editor For Mac Show Linebreak Text Editor For Mac Show Linebreak](/uploads/1/2/5/2/125297055/360890032.jpg)
3 Answers
Use something like
@S+
.Where:
@
means literally '@'S+
means 1 or more any character that is not a space.
Edit according to comment:
Using notepad++, you could do in one pass: (It also works in SublimeText)
- Ctrl+H
- Find what:
(?:^|G)[^@]+(@S+|$)
- Replace with:
$1n
- check Wrap around
- check Regular expression
- Replace all
Explanation:
Replacement:
Result for given example:
TotoToto6,2241313 gold badges1515 silver badges3030 bronze badges
If the usage of your regex is Instagram account specific,
@[a-zA-Z0-9._]+
would be the find string.cf. Character Limit on Instagram Usernames -Stack Overflow
regex for removing all non-account characters
Plain Text Editor For Mac
The following two-step regex would remove all characters but leave Instagram accounts.
- remove all non-account characters
- find string:
(@[a-zA-Z0-9._]+|^)(.+?)(?=@|$)
- replacement string:
$1
- find string:
- insert spaces between accounts
- find string:
(?<=[a-zA-Z0-9._])@
- replacement sting:
@
- find string:
1024jp1024jp
In CudaText editor (free) you can make new text file with @nnn accounts:
- call Find dialog, enter regex
@[w.]+
- press 'Select all' button
- copy selections to clipboard (Edit/Copy)
- make new tab, paste from clipboard (Edit/Paste)
RProgramRProgram