Find/replace help with generic numbers...

Hello... I am looking for help with wildcards.

I have a specific task to complete... I have to add dash & space in a space in a string of letters and characters...

here

221 Kbps - 00:28:34space dash space here47 MB - 44.1 kHz

198 kbps - 01:27:43 41 MB - 44.1 kHz

215 Kbps - 00:34:52 156 MB - 44.1 kHz

225-14 Kbps: 32:00 54 Mb - 48 kHz

If my finished text will look like this

221 Kbps - 00:28:34 47Mb - 44.1 kHz

198 kbps - 01:27:43 - 41 Mb - 44.1 kHz

215 Kbps - 00:34:52 -156 MB - 44.1 kHz

225-14 Kbps: 32:00 - 54 Mb - 48 kHz

There are many variables the text - but I thought that maybe I could create a generic figure find/replace, based on the Mb of type bit, replacing the single space space hyphen space

BUT

I need to keep the numbers before the MB

so my question - is it possible to KEEP the NUMBERS of GENERIC character?

Thank you very much!

If text is like that throughout, you could do a search for

To find

(\:\d\d)\s+(\d+Mb)

Implement

$1-$2

Try it on a few see if it works.

Tags: InDesign

Similar Questions

  • Generic, RegEx Find & Replace Help Needed

    I'm in a time CAP and need some advice. I want to understand RegEx, but right now need a quick fix.

    I have a HUGE body of code that has a type of paragraph repeating everywhere, different contents in each particular case. I need to treat these paragraphs stand out by adding a rule above and below the surrounding text. The above rule is obvious, because of the class, this is the unique identifier for the paragraph, so I have to use for the weaker rule as well. I insert a string after the closing < /p > tag of each paragraph. I need a generic configuration that will escape the contents variable of all these paragraphs, but leave them intact afterwards.

    Let's say that this represents the structure of paragraph:

    < class p = "para_PN" > PN: [content Variable] < /p >

    That's what I have to do to move on hundreds of cases:

    < class p = "para_PN" > PN: [content Variable] < /p > < p > [element added to all] < /p >

    Is the closest, I came:

    To find:

    < class p = "para_PN" > ([^ <] *) < /p >

    Replace with:

    < class p = "para_PN" >$ 1 < /p > < p > [element added to all] < /p >

    But it stores the data for the first wildcard and stops later. Apparently I need a $ 2, $ 3, etc. for each instance and it is not convenient... It is already too.

    Any ideas or solutions would be appreciated.

    Thank you!

    Cayce

    I'm not sure that I fully understand what you're trying to do. If it is to make these paragraphs are distinguished by adding a rule upper and lower, the simplest way to do so is with CSS:

    {.para_PN}

    border-top: 3px solid #000;

    border-bottom: 3px solid #000;

    }

    However, if you want to add a text in a paragraph, it is the regular expression that you need:

    (

    [\w\W]+?

    )

    In replace with field:

    $1

    It is a new text.

    When you click on replace all, Dreamweaver goes through paragraphs correspondents one at a time. $1 replaces the original paragraph, and then the new text is added.

  • Find/replace help-

    I need to remove everything after a specific character

    I got a list for an example like this:

    In a table...

    Test #3434

    Test #3434

    Test #3434

    Test #3434

    Test #3434

    Test #3434

    I need to remove #3434

    Find: #.

    Change:?

    Thank you!

    Styles grep can't add text or remove the text - it basically applies a character style to the text.

    You can do a search for replacement for

    GREP

    (?<>

    Implement

    leave blank

    If you want to "send" with a GREP style. You could make a character style can choose the color of the character to be None

    Then in the style use GREP (?.)<>

    And choose the character style.

    But this leaves the text where it is, just apply has no color so that you can't see.

  • Need help with generics, I think that...

    My application has several tables, each of them has its own data model currently. I'm trying to ignore in the common elements of these models to an abstract superclass, call the AbstractModel. The superclass will contain an inner class that represents a single row of data in the table. Since it is also abstract, I am the appellant AbstractRow. It will contain fields and methods common to all models of data lines.

    AbstractModel declares a field, called lines, where the collection of lines is required:
    protected Vector<? extends AbstractRow> rows;
    Each concrete data model will descend from the AbstractModel and will contain an inner class that descends from the AbstractRow.

    The constructor for each data model concrete instantiates the lines as follows:
    rows = new Vector<MyRow>();
    Here's my question. Why, oh why, oh why can't get the following line in my model of concrete data to compile?
    rows.add(new MyRow());
    The compiler gives me an error about "add(capture<?)." extends from blahblah. AbstractRow >) in the vector cannot be applied to (Bonneau. MyRow). Nothing I do makes no difference.

    A NBS source snippets above are:
    import java.util.Vector;
    import javax.swing.*;
    
    public class MakeAbstractRowWork extends JPanel
    {
      public abstract class AbstractModel
      {
        protected abstract class AbstractRow
        {
          protected String field1;
          protected String field2;
        }
        protected Vector<? extends AbstractRow> rows;
      }
    
      private class MyModel extends AbstractModel
      {
        protected class MyRow extends AbstractRow
        {
          private String field3;
        }
        MyModel()
        {
          rows = new Vector<MyRow>();
          rows.add(new MyRow()); // this line doesn't compile
        }
      }
      public static void main(String[] args)
      {
        javax.swing.SwingUtilities.invokeLater(new Runnable()
        {
          public void run()
          {
            JFrame frame = new JFrame("MakeAbstractRowWork");
            MakeAbstractRowWork pane = new MakeAbstractRowWork();
            pane.setOpaque(true);
            frame.setContentPane(pane);
            frame.setVisible(true);
          }
        });
      }
    }
    I would be grateful for guidance on how to argue my compiler into submission. This, in case it isn't obvious, is my first foray into the world of generic...

    I would make more use of generics:

    // 1. Pull AbstractRow out of the scope of AbstractModel ...
    protected abstract class AbstractRow
    {
      protected String field1;
      protected String field2;
    }
    // ... so that we can use it as an upper bound here
    public abstract class AbstractModel
    {
      // You can now initialize 'rows' here, no need to defer that to derived classes
      protected Vector rows = new Vector();
    }
    // Similarly, pull MyModel.MyRow out of that scope so you can use it as a type argument, then:
    protected class MyRow extends AbstractRow
    {
      private String field3;
    }
    // and then do so ...
    private class MyModel extends AbstractModel
    {
      MyModel()
      {
        rows.add(new MyRow());
      }
    

    WARNING: untested, but you get the general idea.

  • Need help with the numbers without decimal separator

    I have a number such as 6711.00425532, how can I get the 6711 without this number rounded upwards or downwards. In other words, I don't like with any number after the period, all I need is either the number before the period, as is.

    If the number is 23.02345, I need to get all 23

    If the number is 344.985430, I need just the 344

    Is this possible?

    BYJ_wntrsnt wrote:

    I have a number such as 6711.00425532, how can I get the 6711 without this number rounded upwards or downwards. In other words, I don't like with any number after the period, all I need is either the number before the period, as is.

    If the number is 23.02345, I need to get all 23

    If the number is 344.985430, I need just the 344

    Is this possible?

    Difficulty there.


    Fix (6711.00425532): #fix (6711.00425532) #.

    Fix (23.02345): #fix (23.02345) #.

    Fix (344.985430): #fix (344.985430) #.

    Fix(-6711.00425532): #fix(-6711.00425532) #.

    Fix(-23.02345): #fix(-23.02345) #.

    Fix(-344.985430): #fix(-344.985430) #.

  • Need help with the numbering of rows in the table

    I have Setup dynamic table to add rows through the instance Manager.

    Each row in the table has a button to delete this specific instance.

    The problem I have is that, if a row is deleted in the middle of the table, the lines don't re-COMP.

    For example, if the table contains rows numbered 1, 2, 3 & 4, and line 2 is deleted, I want

    the lines to be re-numbered 1, 2, & 3. Instead, what I get is lines 1, 3 and 4.

    The script I use to number the lines is:

    this.rawValue=this.parent.index+1

    I read in other posts that this script used in a table automatically updates the

    number of lines if a line is removed.

    For some reason, it does not work for me.

    All of the suggestions.

    Thank you!

    I created a sample for you... Take a look and let me know what you want.

    Paul

  • More help needed with generic - or is - this reflection?

    This is a thread of follow-up to Re: need help with generics, I think... in which I ask for help a table abstract data model which itself contains an abstract objects row vector. (This book that happens because I have several table models, which are all very similar, and so I'm abstraction of common characteristics). Answering the question of this thread has been plenty in there, but now I have another.

    One such characteristic is a method that I called createMinRows. Many of my tables use blank lines to "fill in" any space which is not taken by rows with real data, so that the area of the scrolling pane is filled with the table grid. It is purely aesthetic. I have a field of AbstractModel, MIN_ROWS, whose value is set by the constructors of subclasses of AbstractModel. Manufacturers then call createMinRows() to get the necessary number of 'dummy lines' created in the model. This method, of course, must be in AbstractModel. And there is the problem: inside the AbstractModel, we do not know what AbstractRow subclass should be instantiated.

    Here's the code in SSCNE (...) Not compilable...) format:
    import java.util.Vector;
    import javax.swing.*;
    
    abstract class AbstractRow
    {
      protected String field1;
      protected String field2;
    }
    class MyRow extends AbstractRow
    {
      private String field3;
    }
    abstract class AbstractModel<T extends AbstractRow>
    {
      protected Vector<T> rows = new Vector<T>();
      protected int MIN_ROWS;
      protected void createMinRows()
      {
        for (int i = 0; i < MIN_ROWS; i++)
        {
          rows.add(new MyRow());  // this line doesn't compile
        }
      }
    }
    class MyModel extends AbstractModel<MyRow>
    {
      MyModel()
      {
        MIN_ROWS = 10;
        createMinRows();
      }
    }
    public class MakeAbstractRowWork extends JPanel
    {
      public static void main(String[] args)
      {
        javax.swing.SwingUtilities.invokeLater(new Runnable()
        {
          public void run()
          {
            JFrame frame = new JFrame("MakeAbstractRowWork");
            MakeAbstractRowWork pane = new MakeAbstractRowWork();
            pane.setOpaque(true);
            frame.setContentPane(pane);
            frame.setVisible(true);
          }
        });
      }
    }
    I guess I have to pass the class with createMinRows()? This would reflect, right? Is it possible to achieve what I need without thinking - I love Java verification type and everything seems to go when thinking puts his head in the door.

    I'd go with an abstract method that you call in your loop:

    abstract class AbstractModel {
      protected abstract T createEmptyRow();
    }
    
  • Need help with this find/replace Script.

    Hi I got this script from Loic.Aigon.  And I got it works for find/replace simple changes however I Cannon operate for several changes.

     function cb5CallBack(target) {
            var findProps, changeProps;
            
                findProps = {findWhat:"Distributed by ",}   
                  changeProps = { changeTo:"Distributed by. ",}
                findProps = {findWhat:"Distribué par ",}   
                  changeProps = { changeTo:"Distribué par. ",}
                findProps = {findWhat:"Distribuido por ",}    
                  changeProps = { changeTo:"Distribuido por. ",},
              
            RTXT(target, findProps, changeProps);   
            } 
    

    function RTXT(target, findProps, changeProps)
    {
    app.findChangeTextOptions.caseSensitive = true;
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.properties = findProps;
    app.changeTextPreferences.properties = changeProps;
    app.changeTextPreferences.properties = changeProps;
    target.changeText();
    }
    

    You must call the function RTXT repeatedly as well:

        var findProps, changeProps;

        findProps   = { findWhat:"Distributed by "};

        changeProps = { changeTo:"Distributed by. "};

        RTXT(target, findProps, changeProps);

        findProps   = { findWhat:"Distribué par "};

        changeProps = { changeTo:"Distribué par. "};

        RTXT(target, findProps, changeProps);

        findProps   = { findWhat:"Distribuido por "};

        changeProps = { changeTo:"Distribuido por. "};

        RTXT(target, findProps, changeProps);

  • Help with wildcards and find/replace

    I have indesign CS5 and I'm working on a document that contains a number of mathematical examples throughout these 9-1 = 8. The corrector said must change to be a space between each symbol figure and math at 9-1 = 8. How can I do this? When I go to find/replace, I have the option of wildcards in find, but not to replace it.

    The dashboard in these equations must also be changed to quadratins. How can I know indesign is any time sees such an equation, the dashboard must be changed? I don't want to just change all the dashes as I much dashes that need to stay.

    Try it on greep

    Search: (\d+)\-(\d+)\=(\d+)

    Change: $1 / $2 = $3

  • Help with letters in find/replace

    Hiyis. I am trying to replace all instances of 'US' 'US', but when I type in find/replace, I get stuff like 'chat' highlighted. No way to specify simply WE capitalized on its own? Or do I have to go through and review each proposed amendment?

    Thanks tons!

    Click on the icons for the case-sensitive and whole word in the dialog box:

  • My USER profile has disappeared, replaced by a generic user with access to NOTHING profile.

    original title: change of user?

    I have Windows 7 Starter and watched a video and my Internet Explorer froze, so I forced stop.  Now my USER profile has disappeared, replaced by a generic user with access to NOTHING profile.  I can find my user profile on the COMPUTER, but I can't switch back to my own USER profile (not "switch user" on the closure.)  Can anyone help?

    Hello

    As the Group Policy Editor is not available in the Home Premium version and the version of Windows 7 starter, the other way to disable is through the registry editor.

    Important: this article contains information about how to edit the registry. Make sure that you back up the registry before you edit it. Make sure you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    Back up the registry

    http://Windows.Microsoft.com/en-us/Windows7/back-up-the-registry

    1) click Start, type regedit.exe in the find dialog box or run and press enter.

    (2) go to HKEY_LOCAL_MACHINE-SOFTWARE-Microsoft-Windows-CurrentVersion------policies------system

    (3) create a DWORD (32-bit) value named HideFastUserSwitching with a right click on the right side of the editor and choice New > DWORD(32bit) value.

    (4) set data HideFastUserSwitching to 0 to disable the fast user switching.

    (5) in the future if you want to enable the fast user switching, set data HideFastUserSwitchingto 1.

    After, log to see the changes. Fast user switching must be disabled after completing the steps above.

  • Support stand not provided my replacement WRT-ngn350 - need help with Cisco contact

    Hello!

    I'm starting to feel like Michael Douglas in the movie Falling Down and need help.

    History:
    Finally, I sent to my bad WRT-ngn350 router and when I got the replacement of all but the plastic leg support has been included. I want to have my router stand up to save desktop space, but now I have no foot.

    "OK, should not be difficult to get Linksys to send me the missing foot stand" was my thought. Now, I called the online RMA and also emailed them and I get a similar response as Michael Douglas took with a smile

    I hear that I can't get the part because it is not on the list the content of the product. As this is * my * problem. I want the part and do not care if it's on a list or not. It is the part on the router in the image. I even asked the representative of Linksys to Google a little bit WRT-ngn350 and there are foot stands on almost all of the images and it is certainly included in the box. I was told that I could go nowhere elsewhere to help with that. I really some doubt but fail to find a channel of Linksys, which may be able to help.

    If some representative of Linksys sees this please help me!

    Thanks, Niklas

    RMA XXXXX - lack of router support/foot

    (Mod Note: under the guidance of the compliance of the directive.) E-mail deleted conversation.)

    SOLVED!

    The representative of Linksys has managed to dig a booth for me to a warehouse. It is mentioned that it is a unique thing because some parts should be sent. Don't forget to remove the stand and send only: router, power and eventually cable NW.

    Thanks to Linksys representative.

  • my old motherboard was brockin so I replaced it with a new one and now I carnt activate windows pleae help

    my old motherboard was brockin so I replaced it with a new one and now I carnt activate windows pleae help

    Something that all OEM computer owners need to understand...

    Citing the example of a desktop HP ENVY h8-1419 PC...

    It is the motherboard that determines the make and model of a PC OEM, NOT the case.

    OEM motherboards contain BIOS custom, in this case HP. Installing OEM key code and recovery disks or partitions will work as long as the Windows installation find a BIOS from HP and the type of motherboard, Windows will validate and remain active.

    When replacing the motherboard, for some reason, with a motherboard that does NOT have a custom BIOS HP, the computer is no longer a desktop HP ENVY h8-1419 PC.

    If the 'new' motherboard first saw life in a DELL computer, it then becomes a DELL. It is not possible to use custom installation of another brand of OEM OEM.

    If she started life in a box of motherboard manufacturer on the set of a major computer parts retailer, is no longer a desktop HP ENVY h8-1419 PC. It's everything that appears as the make and model in the box...

    In the first case, you will need the COA, the key code sticker and the DELL machine DELL of origin if original installation media you want together upwards, the drivers and all.

    Or, as in the second case, you will need either a retail key code or a code key of system manufacturer which must be purchased.

  • Find/replace the numbers?

    I like very much all my numbers in small caps, but always manually go through and change them all. Can I find/replace all numbers with a number of small capitals? CS3/Mac

    You can do this by using a GREP.

    1. go in the tab GREP in the FInd\Change dialog box find it what field type in \d

    2. in article Format change click on the empty area and in the dialog box that opens, go to the tab "Basic character Formats" and chose small caps of the case drop down. OK to the dialog box

    3. change all

    You can save this query to other references.

    Thank you

    Javed

  • Need help with the GREP search delete numbers

    Hello everyone,


    I have the text with the following reference numbers, I need to remove the numbers before each start of paragraph, but some figures following the space, some of the figures are without space. Please help me remove these figures with GREP or MS Word search or other means

    Before:

    1 Apple

    2Ant

    4 animals

    55 flowers

    56Doctor

    466 painters

    467Teacher

    After:

    Apple

    Ant

    Animals

    Flowers

    Doctor

    Painters

    Teacher

    Thank you
    Siva

    Try this GREP and replace it with nothing:

    {^ \s{0,}\d+\s{0,}

Maybe you are looking for

  • Shortcut keys work only not on Satellite M35-S456

    I have windows xp pro installation, and my shortcut keys do not work? Please, I beg you. (I installed the hotkey software)

  • W530 - should I RAID or not? + Disabling Optimus

    Long story short: recently placed an order for a W530. Just checked my order shipment status and I see "NO_RAIDof Internal RAID - not activated." Also had a look at the manual W530 and I don't see what follows, because I intend to install a 2nd HARD

  • Module Design triple redundancy

    Hello Someone has already tried to implement "Triple Module redundancy" on a map of FPGA? I have a PXI-7853R. I think I can support than a bit file. Yes, I could write three modules in a single bit file, but then, how do I control where on the FPGA w

  • Contacts of telepresence EX90

    Hi, Hello, please someone how do I import or export contacts (favorite) on the EX90?

  • Can't burn CD in Windows 7 on WMP

    I had a problem for a while burning CDs on WMP. I use Windows 7, and the reader/writer is a Samsung SH - S222A ATA. It is a new drive, because I thought that the problem could be with my old drive, but for the same problem of being both makes me thin