Since I visit and search UltraEdit forum SO often, I need to bookmark them in the text file.
I prefer txt file because it's very simple and easy to search and manage. My UE version is 25.10.0.32.
So here is my question.
Before:
Bookmark(unique number)_TITLE URL
After:
Bookmark(unique number)_TITLE.txt
Example:
Before:
After:
So in this case 8 txt files should be there created
==> and *** each text file has all the urls in it that copied from the same number lines *** (and the first lines title would be the file name of each txt file)
Bookmark0_forums.ultraedit.com index.html.txt
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page1.txt
Bookmark2_filtered Bookmarks [1].txt
Bookmark310005_to clipboard_via_macro.txt
Bookmark12_..(saved bookmark & added) how to remove dup!.txt
Bookmark05_Find, replace, find in files, replace in files, regular expressions.txt
Bookmark00007_000003 next page via cliboard.txt
Bookmark010_question!(@board3).txt
This is my poor so called "copied and pasted poor macro"
credit to all the users who had some questions in this forum :)
This isn't working.
It’s funny how things never happen the way I expect them to. :)
"Bookmark" and "the unique number_" to tell it where to break up the files.
please help me! :)
I prefer txt file because it's very simple and easy to search and manage. My UE version is 25.10.0.32.
So here is my question.
Before:
Bookmark(unique number)_TITLE URL
After:
Bookmark(unique number)_TITLE.txt
Example:
Before:
Code: Select all
Bookmark0_forums.ultraedit.com index.html http://forums.ultraedit.com/
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page1 http://forums.ultraedit.com/viewtopic.php?t=3609
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page5 http://forums.ultraedit.com/viewtopic.php?t=3609
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page2 http://forums.ultraedit.com/viewtopic.php?t=3609
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page80000 http://forums.ultraedit.com/viewtopic.php?t=3609
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page00 http://forums.ultraedit.com/viewtopic.php?t=3609
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page010 http://forums.ultraedit.com/viewtopic.php?t=3609
Bookmark2_filtered-Bookmarks [1] http://forums.ultraedit.com/copy-filtered-Bookmarks-to-clipboard-via-macro-t17765.html
Bookmark2_filtered Bookmarks (02) http://forums.ultraedit.com/copy-filtered-Bookmarks-to-clipboard-via-macro-t17765.html
Bookmark310005_to clipboard_via_macro http://forums.ultraedit.com/copy-filtered-Bookmarks-to-clipboard-via-macro-t17765.html
Bookmark12_..(saved bookmark & added) how to remove dup! http://forums.ultraedit.com/how-do-i-remove-duplicate-Bookmarks-t2282.html
Bookmark05_Find, replace, find in files, replace in files, regular expressions http://forums.ultraedit.com/find-replace-regular-expressions-f8/
Bookmark00007_000003 next page via cliboard https://forums.ultraedit.com/copy-filtered-BOOKMARKs-to-clipboard-via-macro-t17765.html
Bookmark00007_01 next page https://forums.ultraedit.com/copy-filtered-BOOKMARKs-to-clipboard-via-macro-t17765.html
Bookmark00007_2 previous page https://forums.ultraedit.com/copy-filtered-BOOKMARKs-to-clipboard-via-macro-t17765.html
Bookmark010_question!(@board3) from https://forums.ultraedit.com/regular-expression-to-extract-url-strings-from-a-x-t17790.html
Bookmark010_extract url strings from https://forums.ultraedit.com/regular-expression-to-extract-url-strings-from-a-x-t17790-s15.html
Bookmark010_answer cf links http://forums.ultraedit.com/regular-expression-to-extract-url-strings-from-a-x-t17790-s15.html
So in this case 8 txt files should be there created
==> and *** each text file has all the urls in it that copied from the same number lines *** (and the first lines title would be the file name of each txt file)
Bookmark0_forums.ultraedit.com index.html.txt
Bookmark01_copy.filtered.Bookmarks to clipboard via macro.page1.txt
Bookmark2_filtered Bookmarks [1].txt
Bookmark310005_to clipboard_via_macro.txt
Bookmark12_..(saved bookmark & added) how to remove dup!.txt
Bookmark05_Find, replace, find in files, replace in files, regular expressions.txt
Bookmark00007_000003 next page via cliboard.txt
Bookmark010_question!(@board3).txt
This is my poor so called "copied and pasted poor macro"
credit to all the users who had some questions in this forum :)
This isn't working.
It’s funny how things never happen the way I expect them to. :)
"Bookmark" and "the unique number_" to tell it where to break up the files.
please help me! :)
Code: Select all
Loop 0
Find MatchCase "^c"
EndSelect
IfNotFound
ExitLoop
EndIf
Key HOME
Find MatchCase RegExp "Bookmark+\d_"
Clipboard 9
Copy
EndSelect
Top
Find MatchCase "^c"
EndSelect
Key HOME
PerlReOn
Find MatchCase RegExp "(Bookmark+\d_).*\r?\n(?:\1.*\r?\n)*"
Copy
EndSelect
NewFile
Paste
Top
SelectLine
Copy
Top
Find MatchCase RegExp "^.*?(http|https)"
Replace All "\1"
Bottom
Paste
Key UP ARROW
SelectLine
UltraEditReOn
Find MatchCase RegExp SelectText "^{http^}^*$"
Replace All ""
Bottom
Key UP ARROW
SelectLine
Find MatchCase RegExp SelectText "[~^r^n0-9A-Za-z]+"
Replace All ""
EndSelect
Bottom
Key UP ARROW
StartSelect
Key END
Copy
EndSelect
DeleteLine
SaveAs "^c.txt"
CloseFile NoSave
ClearClipboard
Clipboard 8
UltraEditReOn
IfEof
ExitLoop
EndIf
EndLoop
ClearClipboard