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 9007265
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:38:30+00:00 2026-06-16T01:38:30+00:00

I posted a simplified version of this question before, but I think I might

  • 0

I posted a simplified version of this question before, but I think I might have simplified it too much, so here is the actual problem.

I want to use regex (in Notepad++ or similar) to find “a_dog” in the following (sorry about the wall):

<object classid="clsid:D27CDB6E-AE6D-11cf" id="FlashID">
<param name="movie" value="../flash/words/a_dog.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="6.0.65.0">
<!--[if !IE]>-->
  <object data="../flash/words/a_dog.swf" type="application/x-shockwave-flash">
     <!--<![endif]-->
     <param name="quality" value="high">
     <param name="wmode" value="opaque">
     <param name="swfversion" value="6.0.65.0">
     <!--[if !IE]>-->
  </object>
<!--<![endif]-->
</object>

Then I want to use a back-reference to replace all instances of øø with a_dog in the following:

<input type="button" class="ButtonNormal" onClick="audio_func_øø()">
 <script>
    function audio_func_øø() {
    var playAudio = document.getElementById("element_øø");
    playAudio.play();
    }
 </script>
 <audio id="element_øø">
    <source src="../audio/words/øø.mp3" type='audio/mpeg'>
    <source src="../audio/words/øø.wav" type='audio/wav'>
 </audio>

So that only the second code is left (with a_dog instead of øø), and no trace of the first code remains.

  • 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-16T01:38:31+00:00Added an answer on June 16, 2026 at 1:38 am

    I don’t know how to do this in Notepad++, but you can do this in SublimeText using regex, snippets, and multiple selection:

    First make a new snippet (guide) with the following in it:

    <snippet>
        <content><![CDATA[
    
    <input type="button" class="ButtonNormal" onClick="audio_func_$1()">
    <script>
        function audio_func_$2() {
            var playAudio = document.getElementById("element_$3");
            playAudio.play();
        }
    </script>
    <audio id="element_$4">
        <source src="../audio/words/$5.mp3" type='audio/mpeg'>
        <source src="../audio/words/$6.wav" type='audio/wav'>
    </audio>
    
        ]]></content>
    
        <!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
        <tabTrigger>audioSnippet</tabTrigger>
    </snippet>
    

    Save it as whatever you like in your User package. Follow the linked article if you have any questions on how/where to save it to get it working. I will discuss how this works later on.

    Next use the following regex in Sublime Text by searching (with regex enabled) using the following pattern:

    (?<=value="../flash/words/).+(?=\.swf)
    

    And hit “Find All” – this will select all the names (e.g. ‘a_dog’, ‘a_cat’, ‘a_plane’) using multiple selection.

    • Copy the selected words (Ctrl+C or equivalent on your system)
    • In the menu, Selection->Expand to Paragraph (This will select where the <object> begins, to where </object> ends)
    • Hit Delete/Backspace to remove the <object>‘s
    • Type in your snippet shortcut (above I’ve defined it to be “audioSnippet”) and hit Tab
    • Paste in your copied text (Ctrl+V or equivalent on your system)

    You will notice that you have only replaced the text in the snippet where the $1 appears. you will need to hit Tab to jump to $2, paste the text again (Ctrl+V), and repeat until you get to tab stop $6.

    I’ve made a screen capture that you can look at here: http://youtu.be/oo2MQV3X244 (unlisted video on YouTube)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I posted a related but still different question regarding Protobuf-Net before, so here goes:
Thanks, for your help, I posted a simplified version of my problem but I
I posted a related question to no response but here I'll be less narrow.
I posted another one on this,, but i had to edit it really much...
this will be the first question I've posted here so pardon any unintended lapses
This is a simplified version of the database design I have so far, for
This is an actual working example, which i have broken down and simplified on
I have seen this code posted here on StackOverflow: with TDownloadURL.Create(nil) do try URL
Here is a simplified version of my problem. if (echo AA BB CC |
I posted a question here concerning creating a shopping cart. It seems maybe I

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.