Search
OneNoteGem
  • Home
  • Addins
    • Windows Office Addins >
      • Gem for OneNote
      • OneNote Search Bar
      • OneNote Gem - Favorites
      • OneNote Batch
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • Row to OneNote
      • Auto OneNote
      • Favorite to OneNote
      • Bridge for EndNote and OneNote
      • Anchor to OneNote
      • Anchor to OneNote for PDF
      • Bring to OneNote
      • Gem Table for OneNote
    • Windows UWP Addins >
      • Gem Menu for OneNote UWP
      • CiteBoard for OneNote
      • OneReader
      • OneMind for Windows OneNote
      • OneNote Reminder Cloud (UWP)
      • OneNote Batch Cloud (UWP)
    • Mac Addins >
      • Gem Menu for Mac OneNote
      • CiteBoard for OneNote
      • Bring to Mac OneNote
      • OneMind for Mac OneNote
      • OneNote Reminder for Mac
      • OneNote Batch for Mac
      • Fix One for Mac - Fix OneNote Login, Sync Tools
    • Android Addins >
      • CiteBoard for OneNote
      • Fix One for Android - Fix OneNote Login, Sync Tools
    • Cross-Platform Addins >
      • OneNote Reminder
      • OneMind for OneNote
      • CiteBoard for OneNote
      • Fix One - Fix OneNote Login, Sync Tools
    • Markdown Addins >
      • Gem for OneNote
      • One Markdown
    • Mind Map Addins >
      • OneNote Gem - Favorites
      • Pons for MindManager and OneNote
      • Mind Map for OneNote
      • Pons for Visio and OneNote
      • OneMind for OneNote
    • Other Addins >
      • One Markdown
      • Clip to OneNote
      • WordNote
      • OneShare
      • Fix One for Windows - Fix OneNote Login, Sync Tools
  • Buy
  • Documents
  • FAQs
  • Templates
  • Support
  • Release
  • WordNote
Gem Table for OneNote
 
 
The table of merged cells for OneNote

OneNote Advanced Search: Use Perl Regular Expressions to Find Paragraphs

2021-02-08 07:15
 
Sometimes we need to do complex search in OneNote.
However, OneNote's keywords for search provide only simple lookup expressions.
 
OneNote Batch now provides complex regular expressions to match the paragraphs in OneNote.
Because regular expressions are complex and difficult to remember, you can search the network and learn it.
 

Use Regular Expressions to Find OneNote Paragraphs

 
In OneNote Batch:
  1. Click “Search” feature in “Search” tab.
  2. In the notebook tree, check the sections you want to search for.
  3. Check the “Perl Regular Expressions.”
  4. Enter the regular expression in the search box.
  5. Finally, click the "Start" button to start search.

Use Regular Expressions to Find OneNote Paragraphs

Common Regular Expressions

 
  • Search for paragraphs with parentheses: \(*\)
  • Search for paragraphs with email addresses: \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
  • Search for paragraphs with IP addresses: \d+\.\d+\.\d+\.\d+
  • Search for paragraphs with domain names: [a-zA-Z0-9][-a-zA-Z0-9]{0,62}(/.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+/.?
  • Search for paragraphs that starts with abc:^abc
  • Search for paragraphs ending in xyz:xyz$
  • Search exclude "onenote" word in title: ^(?!.*onenote).*$
  • Search for paragraphs include aaa and bbb in sequentially: (.*?)aaa(.*?)bbb(.*?)
 

Search Scope

 
The search scope of OneNote Batch:
  1. Content
  2. Title (Page Title)
  3. Tags
  4. Links
 

Not Use Windows Index

Advantages:
OneNote Batch automatically does not use Windows indexes when searching with regular expressions.
It reads OneNote pages one by one, searches for OneNote paragraphs using traversal.
Therefore, this search is not affected by OneNote search errors.
Disadvantages:
The search is slow.
 

The Processing of Search Results

  • Click on an item in the search results list to jump to the paragraph in OneNote.
  • Source code for the current paragraph: You can view the source code of the paragraph in OneNote where the current cursor is located to check why you can't search. Typically used to view escape characters for special characters in OneNote.
    For example: “<" is "&lt;" in OneNote, and ">" is “&gt;” in OneNote
  • Delete pages: Delete the pages which checked in the list of search results.
  • Move pages: Move the pages which checked in the list of search results to the specified section.
  • Export pages: Export the pages which checked in the list of search results. The following formats are supported.
    • Export to the .pdf file format.
    • Export to the .emf picture format.
    • Export to the .doc file format.
    • Export to the .mht file format.
    • Exported in .xps format.
  • Save to a new page: Save the results with a new OneNote page.
 
 
 

Demonstration

Use the OneNote Batch regular expression to find paragraphs in OneNote.


 
Download OneNote Batch

Related Documents

  • Bulk Search and Replaces Words in the Title of all Pages in OneNote 2024
  • How to Search OneNote Pages, and Move Them to Specify Section?
  • How to Search the Content Inside of Attachments to Find the OneNote PDF Attachments?
  • Batch Rename OneNote Sections
  • OneNote Search Attachments by File Name
Command Line
Tag System
MindMap Add-Ins Comparison
Search Add-Ins Comparison
One Markdown Syntax
Table Formula
Gantt

Gem Menu Templates
Repair OneNote
OneNote Download
English website Chinese website
Mobile Site
Copyright © 2011-2025 Digital GemSoft. OneNoteGem.com All Rights Reserved.