Home Forums Help needed Set up an auto-tagging rule in Tabbles

Viewing 0 reply threads
  • Author
    Posts
    • Avatar photoSabrina Carpenter
      Participant
      Post count: 1
      <p class=”break-words”>I’m trying to set up an auto-tagging rule in Tabbles 5 to tag files containing email addresses in their content. According to the Tabbles 5 and Confidential user manual, I should be able to use regular expressions for this since version 5.2.31 supports searching file content and tagging based on patterns. I found a regex online for matching email addresses: <span class=”text-sm px-1 rounded-sm !font-mono bg-sunset/10 text-rust dark:bg-dawn/10 dark:text-dawn”>^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$</span>. I set it up in the auto-tagging rule as follows:</p>

        <li class=”break-words”>Selected a folder in Tabbles.
        <li class=”break-words”>Right-clicked and chose “Apply auto-tagging rules.”
        <li class=”break-words”>Entered the regex <span class=”text-sm px-1 rounded-sm !font-mono bg-sunset/10 text-rust dark:bg-dawn/10 dark:text-dawn”>^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$</span> in the rule to search file content.
        <li class=”break-words”>Assigned a test tag called “EmailFound.”

      <p class=”break-words”>However, when I run the rule (Tools > Run rules now), it doesn’t tag any files, even though I know some of the text files in the folder contain email addresses like “example.email@domain.com.” I’ve double-checked the folder path, and the files are plain text (.txt) files, which should be supported. I also tried simplifying the regex to just <span class=”text-sm px-1 rounded-sm !font-mono bg-sunset/10 text-rust dark:bg-dawn/10 dark:text-dawn”>@[a-zA-Z0-9.-]+</span> to see if it would catch anything, but still no luck.</p>
      <p class=”break-words”>What am I doing wrong? Is there something specific about Tabbles’ regex implementation that I’m missing? Could it be a syntax issue, or am I not applying the rule correctly? I’d really appreciate some help figuring this out!</p>

Viewing 0 reply threads
  • You must be logged in to reply to this topic.