Advanced Text Search in EmEditor - Easily Locate Words and Phrases
Advanced Text Search in EmEditor - Easily Locate Words and Phrases
October 12, 2008 at 4:54 am #6387
Keymaster
iisisrael wrote:
I altered it a little to (almost) match what we want to accomplish:s = document.selection.Text;
if (!s) { document.selection.FindRepeat(eeFindRepeatNext); }
else {
document.selection.Find(s, eeFindNext | eeFindReplaceRegExp);
}However, the “document.selection.Find” doesn’t replace the string used by “document.selection.FindRepeat”! This means, when I select text and run this macro, then click to erase the selected found text, and run the macro again, it doesn’t repeat the find on the recently selected text find, but finds the text from the last “Find”. How do I replace the last “Find” value?
Also, if the currently selected text is selected as a result of the find, I don’t want that to become the new find string, I want to continue with the original find string. how do I check to make a distinction between a manually selected string and a string selected by a find? (i.e. I want to repeat my search for the regex, not the next resulting found string from the regex)
Thanks!
I don’t think there is a good way to replace the last Find value.
You might want to claer “Use Word at Cursor in Find/Replace Dialog Box” in the Search tab of the Customize dialog box so the Find string will always become the last searched string.
Also read:
- [New] In 2024, Top 15 Windows 10 Recording Applications Reviewed
- [Updated] 2024 Approved Chroma Mastery Made Easy A Complete Guide to Green Screen Filmmaking
- [Updated] A Comprehensive Walkthrough for iMovie and YouTube Collaboration
- 4 Ways to Mirror Apple iPhone 15 Pro Max to Laptop via USB or Wi-Fi | Dr.fone
- Arc Architect Suite for 2024
- Beta Version 14 Unveiled: New Features in EmEditor Pro Text Editor!
- Does Airplane Mode Turn off GPS Location On Lava Storm 5G? | Dr.fone
- Efficient Text Editing with EmEditor - The Ultimate Code and Notepad Tool
- EmEditor Text Editor Issue: Unmarked Matching Brackets Within Quotations
- Enhance Your Editing Experience: Update Internet Explorer & Firefox with the Powerful Features of EmEditor
- Flip the Script Instagram's Video Trick
- How to Fix Projects.dll Crash in EmEditor: An In-Depth Guide
- In 2024, Ultimate Tutorial Screen Skype via OBS
- Unveiling the Macro Snippet Bug - A Closer Look at Text Editing Flaws in EmEditor
- Why Is Ctrl+Tab Responsive in EmEditor Text Editor, and How Can You Speed It Up?
- Title: Advanced Text Search in EmEditor - Easily Locate Words and Phrases
- Author: Kevin
- Created at : 2024-10-07 08:56:24
- Updated at : 2024-10-14 08:06:56
- Link: https://win-outstanding.techidaily.com/advanced-text-search-in-emeditor-easily-locate-words-and-phrases/
- License: This work is licensed under CC BY-NC-SA 4.0.