How to find the numbers and make it more 1

Hello world

I want to find a group of numbers in my selection, and then do it + 1

for example:

elderly (\d\d)

I want to do is + 1

and

201 (\d)

I want to do is + 1

What is the syntax?

Thank you

VK

Hi, VK,.

Try this. It looks up the number in the selection and added, for example, finds it "(20) years", "201 (2)" and will replace it for "elderly (21)", 201 3 respectively.

var _selection = app.selection[0];
app.findGrepPreferences = changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "(aged) (\\(\\d\\d\\))";
var found = app.selection[0].findGrep();
for(var i=0;i

Kind regards

Cognet

Tags: InDesign

Similar Questions

  • How to find the numbers and make it more 34

    Hi, dear friends

    I want to find a group of numbers in my selection and then make it + 34

    for example: \d\d\d p. & p.

    I want to do is + 34

    Screen Shot 2016-04-04 at 11.17.29 AM.png

    My code below

    var _selection = app.selection[0];  
    app.findGrepPreferences = changeGrepPreferences = null;  
    app.findGrepPreferences.findWhat = "p. \d\d\d";  
    var found = app.selection[0].findGrep();  
    for(var i=0;i<found.length;i++)  
    {  
            app.findGrepPreferences = changeGrepPreferences = null;  
            app.findGrepPreferences.findWhat = "p. \d\d\d";  
            var foundnum = found[i].findGrep();  
            var newnum = parseInt(foundnum[0].contents) + 34;  
            app.changeGrepPreferences.changeTo = newnum.toString();  
            found[i].changeGrep();  
        }  
    alert ("Done")
    

    I think that my formula is wrong? Please a friend advice.

    Thanks in advance.

    Hello

    Change the '-' in regex with ' \' as below, try the code,

    _selection var = app.selection [0];

    app.findGrepPreferences = changeGrepPreferences = null;

    app.findGrepPreferences.findWhat = "% \\d\\d\\d";

    var found = app.selection [0] .findGrep ();

    for (var i = 0; i)<>

    {

    app.findGrepPreferences = changeGrepPreferences = null;

    app.findGrepPreferences.findWhat = "\\d\\d\\d";

    var foundnum is found [i] .findGrep ();.

    var newnum is parseInt(foundnum[0].contents) + 34;.

    app.changeGrepPreferences.changeTo = newnum.toString ();

    Found [i] .changeGrep ();

    }

    Alert ("Done")

  • How to find the Maxima and Minima for each column of a 2D array?

    Hello

    I have a 2D chart and I would find the maxima and minima of each column of the 2-D table. Even though I know how to get maxima and minima for the whole picture but don't know how columnwise? Any ideas please?

    Thank you

    Rohit

    Hello

    @Smercurio-What you said is true, I should have shown using automatic indexing enabled which is really excellent choice. I just tried to show in a very simple way.

    Anyway, here's the best way

  • How to record the numbers and words in the same file

    Hello:

    I did a vi where I record the spectrum and its integration in different positions of a two-dimensional net. I save the information in two spreadsheet with the comand "write to file measure."

    Now, I am recording the parameters initial positions, end X X and space between measurement points. I want a file with two columns that looks like:

    Initial position X 1000

    final position X 2000

    space 100

    But idon't know how to save the words and numbers in the same file.

    As I have to perform several steps I want to automatically choose the name of the file (something like parameters_1, parameters_2...)

    Thank you for your attention

    Hi bitxor.

    You can use all the functions of the WriteTotext file to write strings to a file.

    Then you could set up WriteToMeasurementFile' to add new data to existing files (instead of overwrite or renaming)...

    BTW. It is not a good idea to mix lvm files containing arbitrary spreadsheet data!

  • How to find the utilities and windows drivers VGN-CR36G 8?

    Hello

    I use laptop Vaio VGN-CR36G with vista ultimate. Now, I want to install windows 8 enterprise edition.

    But I can't find the drivers and utilities on the site of sony vaio.

    But my product is compatible for windows 8 OS.

    Here is the link below:

    http://www.Sony-Asia.com/support/product/VGN-CR36G

    Can someone please help me to download all drivers and software?

    Thank you

    Hi Whiteeasy.

    This model does not support Windows 8 operating system which you can confirm from the link below.

    http://www.Sony-Asia.com/microsite/VAIO/support/GetWindows8/GetWindows8_EN_NA.html?referer=http%3A%2...

    If my post answered your question, please mark it as an "accepted Solution".

  • How to find the maximum and minimum of a waveform between cursors

    Hello!

    Does anyone know an easy way to find the maximum and minimum of a waveform between two sliders?

    Kind regards

    Andreas

    Hi Andreas,

    attached, you get an example of it in MeasurementStudio.

  • Always backup failed. due to files corrupted. Error message 0x800703F9.How to find the file and fix them?

    Last backup completed in September - how can I save now please

    Hello
     
    1. you remember to make changes to your machine before the problem?
    2. you have any third-party backup utility installed on your computer?
    3. What are you trying to backup?
    4. that you make a system image backup?
     
    Try another backup file and check.
     
    Follow the steps and check if that helps.
     
    Step 1:
     
    I suggest that you run SFC analysis and check if the problem is related to the file system damaged or missing.
     
    Step 2:
     
    Check your hard drive for errors
     
    Warning of Chkdsk.
    Important:
    when running chkdsk on the drive hard if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost
     
    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • How to find the lock and kill session in order to release it?

    Hi all

    EBS R12.2

    "I met ' could not book record" in our case. How to release the session locked?

    I usually do this by bouncing the apps & db level. Is their subtle way?



    Capture.PNG



    Kind regards

    JC



    Ideally, you should check for locks on the table in question where records are trying to access.

    AFAIK, you must check the v$ locked_object and find sessions.

    Hope this helps!

    Kind regards

    Hugues

  • How to find the version and the arc of the installed Oracle client

    Hi all

    I have a sles 10 sp2 x86_64 on which customer oracle 10.2 is installed. This facility has not been made by me!
    so I don't know how the oracle client version/architecture (32/64-bit) is installed on the client.

    of sqlplus v I get only the version that is installed, and not if it is 32 or 64 bit. How can I find that.

    sqlplus v
    SQL * more: Release 10.2.0.1.0 - Production

    with a little research on Google I found that the link that says 10g below client 32-bit cannot be installed on a 64-bit system.

    I read this Client 32-bit installation on Linux x86_64 RDBMS software. [1075717.1 ID]
    Installing 32-bit RDBMS Client software on x86_64 Linux.
    The only release of 32-bit RDBMS Client software that will properly install on an x86_64 Linux OS system is 11gR2 (aka 11.2.0.x)
    
        * 9iR2 (aka 9.2.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system.
        * 10gR1 (aka 10.1.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system.
        * 10gR2 (aka 10.2.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system.
        * 11gR1 (aka 11.1.0.x) 32-bit RDBMS Client software will NOT install on any x86_64 Linux OS system.
    
    The answer to "why", is that the 11gR2 Client software is the first version that includes syntax so that a 32-bit object is linked.
    can anyone please shed more light on this?

    Hello

    PL see TechNote MOS:
    * How to find if the Oracle Client Software is 32-bit or 64-bit platforms UNIX [434295.1 ID] *.

    Thank you
    A H E E R X

  • How to find the lock and more information why the prg conc taking too long

    Oracle Apps R12-Orader management

    Hi all

    I am new to Oracle Apps, we I run my simultaneous program
    its taking too long to complete. How to find that there is a lock to produce in the table while that simultaneous execution of the program, another way to find why the simultaneous program takes too long to run and how can you speed up the process.

    Yesterday we made a few changes to speed up the process with our DBA to accelerate the simultaneous program

    The first simultaneous program takes 2 h 30 and after these changes taking 1 h 45. Please suggest it's okay

    Connected with the responsibility of the system administrator.

    Manager - set - Manager of the standard.

    Set the value of PROCESS like 15 (instead of 10).

    Set the value of SECONDS of SLEEP as 10 (Changed from 30).

    Manager - set - Manager2 Standard.

    Set the value of PROCESS like 15 (instead of 10).

    Set the value of SECONDS of SLEEP as 10 (Changed from 60).


    Any suggestion on how to find why it takes too much time.

    Any help is highly appricatable

    Thanks and greetings
    Srikkanth.M

    Hello

    I suggest you draw the simultaneous program and analyze the trace file. To do this, mark the simultaneous program as Trace enable (RESP system administrator, Menu simultaneous > program > define) and then run the program and download the trace file after dealing with tkprof. Check which are the staements who take most of the time and try to optimize them.

    It will be useful.

  • How to find the computer and hostname to get remote access?

    Original title: remote access
    Where I would look for a hot name and cmputer get remote access.

    Hello

    Follow these steps to find the name of your computer:

    1. open system by clicking the Start button, click Control Panel, clicking system and Maintenance, and then click System.
    2. under name computer, domain, and workgroup settings, you can find your computer name and the full name of the computer if your computer
    is in a domain.

    Refer to this link for help:

    The name of your computer:
    http://Windows.Microsoft.com/en-us/Windows-Vista/find-your-computer-name

    You can also visit these links for more information about the remote desktop connection:

    Connect to another computer using Remote Desktop connection:
    http://Windows.Microsoft.com/en-us/Windows-Vista/connect-to-another-computer-using-Remote-Desktop-connection

    Remote Desktop connection: frequently asked questions:
    http://Windows.Microsoft.com/en-us/Windows-Vista/Remote-Desktop-connection-frequently-asked-questions


    Kind regards
    Afzal Taher-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to find the audio and recording mixers

    Cannot find Audio Mixers and recording in Windows 7 as I had XP

    My Medion computer purchased recently does not appear to have full audio mixer for volumes or a similar mixer to record levels as I have already in Win XP.

    Is it possible to reproduce pages of mixer teas? I would be grateful for any help on this problem.

    TIA Mike

    Cool Edit 2000 (compatibility issue)

    Hello

    The mixer similar to that of Windows XP volume has been removed in Windows 7.

    Windows 7 has its own volume mixer. Check this link for more information:

    Adjust the sound level on your computer:
    http://Windows.Microsoft.com/en-us/Windows7/adjust-the-sound-level-on-your-computer

    Cool edit 2000 is not compatible with Windows 7. Cool Edit was taken over by Adobe, a few years ago and renamed Adobe Audition. The manufacturer
    offers a paid upgrade to the software.

    Check this link for more information:
    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/details.aspx?type=software&p=cool%20Edit%20PRO&v=Adobe&UID=2&pf=0&PI=
    6 & s = Cool % 20Edit % 202000 & os 32-bit =

    Kind regards
    Amal-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to find the object and remove from the WordPress site.

    There is a search form that appear on each page. It is just below the entrance by the WP user content for each page.

    I've been using Firebug in Firefox and I can see the code it puts in Firebug, but I can't find the source file so that I can change the code using DW to remove this search form.

    Please help if you can.

    I found it. It is searchform.php and she is called to sidebar.php where the other widgets are called from.

    I hope this helps someone else.

    Thanks for your help Nancy OShea

  • How to find the Date and the time of Installation of Oracle on Windows?

    Hello

    Is it possible to find the installation Date and time of Oracle on Windows?


    Concerning
    Rajesh

    If you have never recreated/restored/reincarnated the database, then COLUMN of v database $ should tell you when you created the database.

    If you are looking for the time of installing Oracle home, check the logs under OraInventory.

    Reply by Satish sir at the following link:
    installation of a database date/time!

    HTH
    Girish Sharma

  • HP J4680: how to enter the numbers and letters of wpa

    I have no trouble to enter the letters of WPA, but my WPA also has a number, how should I enter a number?

    Continue to press the same key again and again and watch the magic.

Maybe you are looking for

  • Right-click in accidents of navigation because of NVIDIA shell Extensions pane

    Whenever I have click on the Windows Explorer navigation pane folder, Windows Explorer to crash and restart. From the web to research, I learned to use ShellExView shell extension which was responsible for finding. A process of elimination I found th

  • LOCAL M40X-230 WIRELESS NETWORK PROBLEM

    I have a problem with the Wi - Fi connection. After initial startup of wireless lan, speed goes from 54 to 1 MB/s and then continues to jump around making me lose my internet connection. Thought it was the router at first but after 3 new routers, thi

  • HP G71-340US recovery of the system using a new smaller hard drive (SSD)

    I replaced the hard drive on an HP G71-340US notebook with a Solid State Drive (240 GB).  The original drive (who did not) was a 320 GB drive. I tried to perform the Reovery of system using the recovery disks that I created when I bought the laptop. 

  • FM radio does not after update (23.4.A.1.232)

    Hi, I have just discovered that after the latest software updated to the FM radio without working more. Have anyone summer another faced the same question? If something related to the last update of the software?Thank you guys for the support.Giusepp

  • Disable the integrated graphics card?

    Hello I have a Dell XPS 15 L502X. So I recently installed a game called Wolfenstein: The New Order. And everytime I start the game I get an error known on the web as "wglCreateContextAttribsARB failed". I know that the cause of the error is that the