Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9056757
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:17:18+00:00 2026-06-16T14:17:18+00:00

I am using notepad++ and RegEx. I have a SRT file and I want

  • 0

I am using notepad++ and RegEx.

I have a SRT file and I want to add three question marks “???” whenever the first the three characters of a line are also three questions marks “???”. However, I only wish to do this if the next line is blank. However, if the next line is not blank then I would like to add the ??? after the end of that next line.

For example this is that I have.

14
01:04:21,406 --> 01:04:24,887
??? Face I'd never see again

15
01:04:24,885 --> 01:04:27,638
??? It's a shame to awake
in a world of pain

Now I would like to add the ??? like this to both the lines.

14
01:04:21,406 --> 01:04:24,887
??? Face I'd never see again ???

15
01:04:24,885 --> 01:04:27,638
??? It's a shame to awake
in a world of pain ???
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T14:17:19+00:00Added an answer on June 16, 2026 at 2:17 pm

    Notepad++ used to have problems with multiline matches, but the current releases are said to support Perl-style regexes much better. I don’t have Notepad++ installed, but if its regex engine works correctly, then the following regex should solve your problem:

    Search for (?s)^(\?{3}.*?(?=\r?\n\r?\n|\z)) and replace with \1???.

    Explanation:

    (?s)         # Turn on dot-matches-all mode
    ^            # Match start of line
    (            # Match and capture (group 1)
     \?{3}       # Three question marks
     .*?         # Any number of characters, as few as possible
     (?=         # until the following regex can be matched at the current position:
      \r?\n\r?\n #  Either two newlines in a row
     |           # or
      \z         #  the end of the file
     )           # End of lookahead assertion
    )            # End of capturing group 1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using VBScript, I want to add an additional button to Notepad labeled send .
I have a large XML file in one line. How can I add a
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
I have assigment to make notepad using NetBeans Java. I already made the whole
I saved my Java source file specifying it's encoding type as UTF-8 (using Notepad,
I'm using a technique from another Stack Overflow question to write a CSV file
I have been using the notepad SQLhelper (notesDBadapter) as a model, some of it
I am using Notepad ++ and I need to know how to add breaks
im using keybd_event(); and i want use SendMessage(); to send keystroke to notepad, can
I have data in a notepad file as following: A 1-6 A 1-7 B

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.