How to remove all the characters on a line before a specified character
I am trying to figure out how to rip all the TLD's from a huge list of domain names. Rather than copy paste each one i'd just like to remove ALL the text before the '.'
Before:
- exmample1.com
- exmample1.org
- exmample1.fr
- exmample1.eu
- exmample1.es
- exmample1.net
After:
- com
- org
- fr
- eu
- es
- net
I have tried all the other methods in all the other questions. None of them work for me.
Any help would be great, thanks!
notepad++
add a comment |
I am trying to figure out how to rip all the TLD's from a huge list of domain names. Rather than copy paste each one i'd just like to remove ALL the text before the '.'
Before:
- exmample1.com
- exmample1.org
- exmample1.fr
- exmample1.eu
- exmample1.es
- exmample1.net
After:
- com
- org
- fr
- eu
- es
- net
I have tried all the other methods in all the other questions. None of them work for me.
Any help would be great, thanks!
notepad++
add a comment |
I am trying to figure out how to rip all the TLD's from a huge list of domain names. Rather than copy paste each one i'd just like to remove ALL the text before the '.'
Before:
- exmample1.com
- exmample1.org
- exmample1.fr
- exmample1.eu
- exmample1.es
- exmample1.net
After:
- com
- org
- fr
- eu
- es
- net
I have tried all the other methods in all the other questions. None of them work for me.
Any help would be great, thanks!
notepad++
I am trying to figure out how to rip all the TLD's from a huge list of domain names. Rather than copy paste each one i'd just like to remove ALL the text before the '.'
Before:
- exmample1.com
- exmample1.org
- exmample1.fr
- exmample1.eu
- exmample1.es
- exmample1.net
After:
- com
- org
- fr
- eu
- es
- net
I have tried all the other methods in all the other questions. None of them work for me.
Any help would be great, thanks!
notepad++
notepad++
asked Dec 10 '13 at 6:43
user2526699user2526699
322411
322411
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
In "Search and Replace" dialogue box (Press Ctrl+H)
Under "Search Mode", Choose "Regular Expression"
Under "Find What: ", paste
^.+[.]
Click "Replace All"
Explanation of PCRE
^ Beginning of the string
. Any character
+ One or more the previous character (greedy)
[.] One character of dot
add a comment |
protected by Community♦ Feb 16 at 7:23
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
In "Search and Replace" dialogue box (Press Ctrl+H)
Under "Search Mode", Choose "Regular Expression"
Under "Find What: ", paste
^.+[.]
Click "Replace All"
Explanation of PCRE
^ Beginning of the string
. Any character
+ One or more the previous character (greedy)
[.] One character of dot
add a comment |
In "Search and Replace" dialogue box (Press Ctrl+H)
Under "Search Mode", Choose "Regular Expression"
Under "Find What: ", paste
^.+[.]
Click "Replace All"
Explanation of PCRE
^ Beginning of the string
. Any character
+ One or more the previous character (greedy)
[.] One character of dot
add a comment |
In "Search and Replace" dialogue box (Press Ctrl+H)
Under "Search Mode", Choose "Regular Expression"
Under "Find What: ", paste
^.+[.]
Click "Replace All"
Explanation of PCRE
^ Beginning of the string
. Any character
+ One or more the previous character (greedy)
[.] One character of dot
In "Search and Replace" dialogue box (Press Ctrl+H)
Under "Search Mode", Choose "Regular Expression"
Under "Find What: ", paste
^.+[.]
Click "Replace All"
Explanation of PCRE
^ Beginning of the string
. Any character
+ One or more the previous character (greedy)
[.] One character of dot
answered Dec 10 '13 at 6:53
Ivan ChauIvan Chau
907418
907418
add a comment |
add a comment |
protected by Community♦ Feb 16 at 7:23
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?