List of numbers

I need to strip the numbers manual and replace them with the automatic paragraph numbers.

1 1.     text

2 2.     Text2

Is this possible via the script. It can be applied only in the list of numbers

You need to escape the backslashes: ' ^ \\d+?\\.\\t+ ';

But the way you did, without defining a replacement string, applies only to the paragraph style NL, it does not remove the manual numbering. To apply the style and remove the number, follow these steps:

app.findGrepPreferences=null;
app.changeGrepPreferences=null;
app.findGrepPreferences.findWhat="^\\d+?\\.\\t+(.)";
app.changeGrepPreferences.changeTo="$1";
app.changeGrepPreferences.appliedParagraphStyle="NL";
app.activeDocument.changeGrep();

Peter

Tags: InDesign

Similar Questions

  • List of numbers start with a number other than 1?

    Hi all


    I supervised two side by side (since I can't do 1 column 2 text box).

    I need the list numbering from 1 to 5 on the left and 6-10 on the right.

    I can't find a way to change the starting number of the list of numbers. Any ideas how I can do?

    Any help appricated!

    Ordered lists support different numbering schemes and start numbers shifts. Unfortunately Muse doesn't expose all this kind of things, so you need to change the published HTML. Refer to this:

    Ol HTML tag

    Mylenium

  • the list of numbers between two columns

    Hello

    I need the list of numbers between two columns.

    My source table contains the intervals with different ranges and I'm currently thinking dividing them by size.

    I was able to get a solution following the information contained in the Web page:
    http://StackOverflow.com/questions/3971981/get-list-of-numbers-in-between-two-columns

    The solution I've used is based on the following example:
    with t as (   
      select 10 startnum, 15 endnum from dual   
      union all   
      select 18, 22 from dual   
      union all   
      select 10000, 19999999999 from dual   
    )   
    select lvl   
      from (select level lvl  
               from dual  
            connect by level <= (select max(endnum) from t)) a  
      where exists (  
         select 1  
           from t  
          where lvl between t.startnum and t.endnum ) 
    But this doesn't work in my table if I have few and modest intervals (maximum 5 digits range).
    In the example, I was trying to understand why this might be failing, but I do not have a conclusion yet.
    There is something I noticed and that I try to understand, that is:
    If I change this query to:
    with t as (   
      select 10 startnum, 15 endnum from dual   
      union all   
      select 18, 22 from dual   
      union all   
      select 19999999990, 19999999999 from dual   
    )   
    select lvl   
      from (select level lvl  
               from dual  
            connect by level <= (select max(endnum) from t)) a  
      where exists (  
         select 1  
           from t  
          where lvl between t.startnum and t.endnum ) 
    It will increase from 2 to 3 seconds to return results to a few minutes at least (canceled after a few minutes!)

    Thus, using this example to understand if my problem is related to having many between start and end number or if it is linked with having small intervals between large numbers.

    Can someone explain to me why I have this speed of different treatment depending on the value of the interval? And why it takes longer with the small interval?

    I need to apply it to different beaches (from 2 ranges of numbers to 16 range) and in all ranges, I will have small intervals to check.

    For example:
    endnum startnum
    7341 7342
    7422-7423
    7439 7456

    2522200050 2522200054
    2522200146 2522200150

    4216969839880 4216969839884
    4216969839893 4216969839897

    Having this problem I can only ask the first values I have in the picture!

    Best regards
    Ricardo Tomas

    Hi, Ricardo,

    Here's one way:

    WITH       cntr     AS
    (
         SELECT     LEVEL - 1     AS n
         FROM     (
                  SELECT  MAX ( endnum - startnum)     AS max_diff
                  FROM    t
              )
         CONNECT BY     LEVEL <= max_diff + 1
    )
    SELECT  startnum + c.n
    FROM     t
    JOIN     cntr  c      ON   t.endnum  >= t.startnum + c.n
    ;
    

    In your original query, you generate all the numbers from 1 to the highest endnum. You only need enough numbers to cover the range of startnum to endnum. (This method also works if startnum is less than 1).
    Joins are usually faster than EXISTS subqueries.

  • How to create a table/list out numbers with Boolean attributes

    Hello

    Maybe the title doesn't explain it too well but what I'm trying to do I guess must be honest, I don't know how!

    I want a table of numbers to be entered by a user, and for each of these numbers, I wish to have a Boolean value, (he will later choose what action is performed on this number)

    The table size can vary

    for example

    element numeric Boolean value

    0                       5                             True

    1                       20                           True

    2                       -5                            False

    3                       10                           True

    ..

    ..

    n                       100                         False

    I don't see any list with numerical and Boolean, maybe I just have not spotted or what I need to do somehow?

    Any suggestions please?

    Thank you!

    p.s. If someone else uses Opera Browser to post here, hitting enter work correctly for you when entering text? For me, it moves the cursor climb a line instead of to the bottom! Driving me crazy! It only happens with this forum OR

    There is no control that has something you're looking for, but a simple table of clusters can work. The cluster would have a digital and a Boolean value. It is not the largest interface, but you can do a little better by masking the display index for the table and the scroll bar visibility.

  • How to list the numbers in the list of values for a url parameter IRIN/filter

    Hello

    I'dl likes to call it the Apex interactive report with filter IRIN parameter page in the URL
    to get the report to get a list of the IDS of the action.

    When the filter looks like IRIN_ACTION_ID:189353, I get the report for action_id = 189353 correctly.
    However, the point would be to get the report for a set of values action_id, but I am struggling to find the format how to list more worth action_id to achieve the desired result.


    It works, gives what I expect:
    http://../pls/Apex/f?p=999:916:1087915793180497:CIR:IRIN_ACTION_ID:189353

    These formats do not work, here, I'm trying to get the action_id report IN 189353,19004
    http://.../pls/Apex/f?p=999:916:CIR:IRIN_ACTION_ID:189353 %2C 190043
    http://.../pls/Apex/f?p=999:916:CIR:IRIN_ACTION_ID:189353, 190043

    Action_id = 190043 is not included in the report that there is.

    Please can someone confirm how the values of type numbers must appear in the URL for the IN operator?

    Thank you very much
    Lajos

    Published by: lvarady on 10-Sep-2011 06:39

    The way to proceed is to encapsulate all the values passed within backslashes. Like this: \189353,190043\

    Passing in your url and it has all the great work!

  • Lists Lettered/numbered RH8

    What is the best way of procedures in the list?  1., 2., 3. for the main steps and a., b., c. substeps, bullets for options for each hand or sub-steps.  The best solution to do this, I can't understand that I can't get numbered lists to work correctly.  I'm looking on the forums, however, there is nothing definite.  Currently, this is my code for a step:

    rh_code.png

    The next step, the numbering continued as such.  Step 1, then step a, b, c.  Step 2, then d, e, f.

    This has always been a problem with me importing documents Word in RH5 and RH8.   Is there a special way to implement the Word template before importing it?

    Have you seen this site of Peter? http://www.Grainge.org/pages/authoring/lists/lists.htm

  • levels and list of numbers

    Hello forumers.

    im making a numbered list and when I do level 2 on each paragraph, is not coverting in numerical order.

    paragraph 2 when I choose level 2 to 02, but rather his 01 again.

    upload to adobe22.jpg

    Take a look to continue the previous level in the numbering in the paragraph Style options?

  • execution of math on a list of numbers using applescript

    I have three columns of numbers in a text file (using BBEdit, impossible to use numbers as there are more than 1 million lines):

    299400 3275700 - 57.9788

    299500-3275700 - 57.9811

    299300 3275600 - 57.9346

    299400 3275600 - 58.0249

    299500-3275600 - 58.0026

    ...

    I simply multiply the last column (what happens to start by "-") by the value of 0.75, but I am confused.

    Beginning AppleScript, so I looked everywhere for example scripts manipulation of numbers but not lucky to have.

    So far, I have this:

    "But I get this error message: error "cannot make characters 16 through 23 of \"tmp_ITFR2000.txt\ text document" application \"BBEdit\" number. "- 1700 characters 16 to 23 of 'class TxtD '"tmp_ITFR2000.txt"to the number of number

    I have to somehow dimension > a number variable?

    Thank you

    Jim

    Use the following line:

    output to found the results as a string as a number object

    (137021)

  • How to send SMS to an individual or a list of numbers?

    Hello

    I want to send SMS to a particular number or group of numbers. As I had somehow in this link below: Send SMS text Messages

    I tried with it. But after sending the sms, it is not getting on the particular number. Means, that it is not delivering. I wrote the below codes:

              if (field == mCbSaveContact)
            {
                       sendSms();
                    }
    
     private void sendSms() {
        // TODO Auto-generated method stub
    
             UiApplication.getUiApplication().invokeLater(new Runnable()
                {
    
                    public void run() {
    
                        DatagramConnection dgConn;
                        try {
                            dgConn = (DatagramConnection)Connector.open("sms://9014409192");
                            byte[] data = "Test Message".getBytes();
                            Logger.out("AddContact","data value");
                            Datagram dg = dgConn.newDatagram(dgConn.getMaximumLength());
                            dg.setData(data, 0, data.length);
                            Logger.out("AddContact","after setting the data");
                            dgConn.send(dg);
                            Logger.out("AddContact","Sending SMS success !!!");
                        } catch (IOException e) {
                            // TODO Auto-generated catch block
                            e.printStackTrace();
                        }
                            }
                   });
    

    Help, please...

    invokelater isn't a thread and everything that the blocks should be on a separate thread.
    http://supportforums.BlackBerry.com/T5/Java-development/what-is-the-event-thread/Ta-p/446865

  • See the list of numbers such as "call number?

    I've added a menu to MENUITEM_ADDRESSBOOK_LIST and I'm looking to display the dialog box "Call what number?" as BlackBerry does for contact with many numbers.

    Do I have to use Dialog.ask or a class exist?

    1. open address book

    2. Select a contact with a lot of numbers

    3. click on the BlackBerry button and then click< call="" xyz="">

    4 blackBerry open a dialog box to select the number

    Thanks in advance :-)

    Finally, it works:

    Synchronized (application.getEventLock ())
    {
    UiEngine objUI = Ui.getUiEngine ();
    Screen ObjScreen = new dialog box ("Call number?", strLabels, intIndexes, 0, Bitmap.getPredefinedBitmap (Bitmap.INFORMATION), Manager.VERTICAL_SCROLL);
    objUI.pushGlobalScreen (objScreen, 1, UiEngine.GLOBAL_MODAL);
    i = ((Dialog) objScreen) .getSelectedValue ();
    }

    I changed the UiEngine.GLOBAL_QUEUE to UiEngine.GLOBAL_MODAL to wait for the choice of a number.

    Mount the objScreen dialogue, and then use the getSelectedValue() method.

    Thank you very much :-)

  • What is the best way to list the numbers of page and page number ranges in my table of contents?

    I use the feature book to create a catalog.

    Thus, it consists of several files.

    Each file is a 'different' Section that Indesign is concerned.

    Here's my table of contents now:

    toc.PNG

    All page numbers are static.

    Each rounded rectangle, color corresponds to a section (which is a separate file). Some sections have subsections, some don't.

    The catalog changes over time, I would like that all page numbers in the table of contents of auto-update. Less work and less chance of human error.

    I noticed the text variable and tools of text to anchor, but so far have failed.

    What do you recommend?

    I decided to use text Variables.

    -J' I first define the header of each category as a Destination of the hyperlink text.

    - Then I insert a text Variable in the mounting spot in the table of contents, using my simplified page number text variable definition:

    Takes two text Variables with a hyphen between them to express a range of pages. It works well enough.

    A small tip is necessary to the last page of page number. I use a text in the large box in the mount table as a Destination of the hyperlink. He is never seen, but as long as he stays on the right page, it will always give me the page that I need - the last in this section:

  • Works with dynamic sql and list of numbers as return value

    Hello.

    Problems:

    1. How can I insert the USERNAME variable in the string so it will be replaced over time.
    2. I intend to return a list of IDS as 1,4,6,7,2 I want to use later in an IN clause.

    How to complete the return function with the dynamic sql output variable?
    I have no preference to dynamic sql but it was just something that came into my mind
    When I thought that the implementation of the obligation to choose a list of offices for specific user groups.
    (select statements from the sample are cut short, they're actually really big and I want to reuse this function in my)
    BI Publisher data model for multiple modells).


    CREATE or REPLACE FUNCTION F_OFFICES (-input parameters)
    USERNAME IN VARCHAR2
    USERGROUP IN VARCHAR2,
    )
    -Output parameter
    RETURN VARCHAR2 AS
    dynSQL VARCHAR2 (1000);
    BEGIN

    IF USERGROUP = "local" THEN

    dynSQL: = 'xxx SELECT FROM CO_B WHERE Userid = username';

    ELSIF USERGROUP = "regional" THEN

    dynSQL: = "SELECT...". » ;

    ELSIF USERGROUP 'federal' = THEN
    dynSQL: = "SELECT...". » ;

    END IF;

    EXECUTE IMMEDIATE dynSQL;

    -RETURN?;

    END F_OFFICES;


    Thanks for any help.

    As you have presented essentially pseudo-code we can only give you a Pseudo-solution :)

    But the principle is:

    ...
    --Output parameter
    RETURN VARCHAR2 AS
        dynSQL VARCHAR2(1000);
        return_value varchar2(30):
    BEGIN
    
      IF USERGROUP = 'local' THEN
        dynSQL:= 'SELECT xxx FROM CO_B WHERE userid = :1'; -- placeholder for parameter
    
       ...
      END IF;
    
      EXECUTE IMMEDIATE dynSQL
         using USERNAME -- pass parameters in placeholder order
         into return_value;   -- obviously this must match the projection of the dynamic query 
    
      RETURN return_value; 
    
    END F_OFFICES ;
    

    This approach is not good if you want to vary the dynamic query projection. In this case, you can use a REF CURSOR or maybe DBMS_SQL.

    Cheers, APC

  • I have a drop down list with numbers refrence and show the hidden sub

    I have a form that has a drop down menu that has several numbers 1,2,3,4,5,6. I also have a subform hidden with the information that I need to post, so if they want 2 I need 2 instances of this subform to show. If they choose 3 I need 3 instances of this subform to apear. ECT... I have all text flowed and the West.

    Ok. In this case you must first define the instance of the subform, and then you will need to loop through all instances and make these visible subforms.

    In the change event of the DropDownList control, you can put the following script.

    var a = xfa.event.newText; This will capture the value in the case of change, if you want the script to the event exit you have

    AreadDoorMF.instanceManager.setInstances (a);       to make it in the var a this.rawValue

    for (var i = 0; i)

    {

    xfa.resolveNode ("AreaDoorDF [" + i + "]"). DF.presence = "visible";

    xfa.resolveNode ("AreaDoorDF [" + i + "]"). DF. Header.Presence = "visible";

    }

    Sorry I just setInstance instead of setInstances

    Thank you

    Sidonie

  • Add commas to the huge list of numbers? CS4

    Hello, all,.

    I currently have a huge brochure that I'm working, and I hope that there is a way to do this easily (or at least not to hand). I have thousands and thousands of many who need commas added to them (1 234 vs 1234). I can't change each number in the directory, because some are numbers of product that is not editable, but is it possible to change a selection?

    Thanks in advance. My Google-fu is to miss it.

    How about the following?

    To find:

    (\d) (\d{3}\D)

    and replace with:

    $1, $2

  • Variable to use as a list of numbers for 'in' clause

    Hello.

    I write a proc that should remove a unknown number of messages in a queue advanced and then query a standard table, return a cursor. I've coded most of it, but I have problems when there is more than one message to be removed (which is the more likely scenario). Here is the code as it is:

    CREATE OR REPLACE PROCEDURE prc_get_actv_updts_ac (vConsumerName IN VARCHAR2,
    vQueueName IN VARCHAR2,
    vMaxIdCount in FULL,
    v_retrc OUT SYS_REFCURSOR) IS
    consolidated_updt_msg_t obj;
    deq_msgid RAW (16);
    queueopts dbms_aq.dequeue_options_t;
    msgprops dbms_aq.message_properties_t;
    vIdList VARCHAR2 (32767).
    vIdCount INTEGER.

    -As we queue with the wait flag set to no_wait, an exception
    -will be thrown when there is no message to dequeue. This will serve to
    -the output of the loop (see below)
    no_messages EXCEPTION;
    PRAGMA EXCEPTION_INIT(no_messages,-25228);
    BEGIN
    queueopts.consumer_name: = vConsumerName;
    queueopts.dequeue_mode: = dbms_aq.remove;
    queueopts. Navigation: = dbms_aq.next_message;
    queueopts. Wait: = dbms_aq.no_wait;
    queueopts. Visibility: = dbms_aq.immediate;
    vIdCount: = 0;

    -Loop through the contents of the queue
    While vIdCount < = vMaxIdCount LOOP
    dbms_aq. Dequeue (queue_name = > vQueueName,)
    dequeue_options = > queueopts,
    message_properties = > msgprops,
    payload = > obj,.
    msgid = > deq_msgid);

    vIdCount: = vIdCount + 1;

    IF (vIdCount = 1) THEN
    vIdList: = obj.id;
    ON THE OTHER
    vIdList: = vIdList | ',' || obj.ID;
    END IF;

    END LOOP;

    -It will be lifted when there is no message left to dequeue
    EXCEPTION
    WHEN no_messages CAN
    -Do nothing
    NULL;
    COMMIT;

    Dbms_output.put_line ('vIdList: ' | vIdList);

    OPEN FOR V_retrc
    SELECT * FROM t_table t WHERE t.id IN (vIdList);
    END prc_get_actv_updts_ac;


    You may be wondering why we are trying to do in the first place. It's a long story, but the plan was to have a c application ++ dequeue messages from the queue, but the developer of that piece ran into problems, and because we are under pressure of time, we decided to write this proc rather (he knows he can call procs and pull results out of cursors without difficulty). As I said, it works fine when there is only one line to dequeue, but as soon as we have more than one, I get an error in the select statement, saying: vIdList is an invalid number (and the value of example of vIdList when I get that error is "6977418,12290358" (without the quotes!)).

    Any thoughts?

    Then use the table/varray:

    CREATE OR REPLACE PROCEDURE prc_get_actv_updts_ac(vConsumerName IN VARCHAR2,
    vQueueName IN VARCHAR2,
    vMaxIdCount IN INTEGER,
    v_retrc OUT SYS_REFCURSOR) IS
    obj consolidated_updt_msg_t;
    deq_msgid RAW(16);
    queueopts dbms_aq.dequeue_options_t;
    msgprops dbms_aq.message_properties_t;
    vIdList sys.OdciNumberList := sys.OdciNumberList();
    
    -- As we are dequeuing with the wait flag set to no_wait, an exception
    -- will be thrown when there are no messages to dequeue. This will be used to
    -- exit the loop (see below)
    no_messages EXCEPTION;
    PRAGMA EXCEPTION_INIT(no_messages, -25228);
    BEGIN
    queueopts.consumer_name := vConsumerName;
    queueopts.dequeue_mode := dbms_aq.remove;
    queueopts.navigation := dbms_aq.next_message;
    queueopts.wait := dbms_aq.no_wait;
    queueopts.visibility := dbms_aq.immediate;
    vIdCount := 0;
    
    -- Loop through the contents of the queue
    WHILE vIdCount <= vMaxIdCount LOOP
    dbms_aq.dequeue(queue_name => vQueueName,
    dequeue_options => queueopts,
    message_properties => msgprops,
    payload => obj,
    msgid => deq_msgid);
    
    vIdList.extend;
    vIdList(vIdList.count) := obj.id;
    
    END LOOP;
    
    -- This will be thrown when there are no messages left to dequeue
    EXCEPTION
    WHEN no_messages THEN
    -- Do nothing
    NULL;
    COMMIT;
    
    DBMS_OUTPUT.put_line('vIdList: ' || vIdList);
    
    OPEN v_retrc FOR SELECT * FROM t_table t WHERE t.id member of vIdList;
    END prc_get_actv_updts_ac;
    

    Or you can use:

    V_retrc OPEN to SELECT * t_table t WHERE t.id in (select * from table (vIdList));

    SY.

    Published by: Solomon Yakobson on November 23, 2011 11:41

Maybe you are looking for

  • An album of a single artist divided into several albums

    Hello My problem is the following: I have UN Justice album that contains 2 pieces (Randy and Safe & Sound). These 2 songs have the same artist name, album, year, etc. In the categories in detail and sorting, 2 pieces have exactly the same information

  • Browser is stuck in mode full screen, restart does not help.

    I entered the mode full screen on a website and now cannot get out. Restarting my computer does not help. Problem is that when you are using Firefox, no other browsers. Firefox continues to open full screen mode whenever I open it, and I have to rebo

  • Brand new EA4500 - no strip of 5 GHz after several reboots?

    Hello I set up my new EA4500 last night and set up the bands 5 GHz and 2.4 Ghz with separate SSID (as recommended). While I can see the 2.4 Ghz band with all my devices, I don't see the band 5 GHz with any of them. I followed the advice given (includ

  • Can get a time microsoft security program life for my computer?

    I am told that I can get a life time microsoft security, which I will not have to buy an antivirus or any other protection for my computer.  How can I find this as well as the details about it?

  • I want to get the property of the previous object in the table

    HelloHere is my codefor (var i in {MovieClip (root) .arrySpt)}var btn:MovieClip = MovieClip (box);duplicate the movielcip (add a new scene)var ClassDefinition: Class = Class (getDefinitionByName (getQualifiedClassName (btn)));var myMC:MovieClip = new