How can I use GREP to find only 5 numbers?

Hello

My document is hundreds of product codes for example 12111

I want to change the formatting of these codes include a space after the first two digits, e.g. 12 111

I start there: (\d{2})\d{3} but he finds the first five digits of a number any > = 5)

So I moved to these: ------< (\d{2})\d{3}~b or------< (\d{2})\d{3}\ > they work well but include numbers like this: 457 12345 78 and 000 00 12345 ))

I don't want to change the numbers like these that the document contains several numbers of patent/CRD.

So basically, I need to find 5 digits only. Excluding the spaces before and after.

Thank you

Paulo19 wrote:

It always takes the number of places for example 457 12345 78 and 12345 000 00

No it does not pick up the spaces. What you want is to find 5-digit numbers have no number before or after.

Try this one:

(?

Tags: InDesign

Similar Questions

  • InDesign CS4 how can I use GREP barely unique target after a colon (:))

    I'm formatting a book and below each chapter title (title :) is a phrase that I need to have its own style of paragraph (without manually applying the style as there are has more than 100 chapters).) Distinguishing it only characteristic phrases should I target, is that they follow a colon, a space, and a paragraph break.  and every sentence ends with a paragraph break.

    Try

    (?<>

  • How can I use lightroom or photoshop on my laptop, when I open it, it says only, I use on two computers and I have already two I have Mac at home.

    How can I use lightroom or photoshop on my laptop, when I open it, it says only, I use on two computers and I have already two I have Mac at home.

    Hi moving,

    You can use Lightroom or Photoshop on two computers using a single license.

    If you want to use on the third computer, you should disable any previous machines and turn it then back on the 3rd machine.

    You can also consider getting another license or subscription to your other computer.

    ~ UL

  • Use Grep to find/replace

    I'm trying to find how to use GREP in find/replace of chage the formatting of a text which is a spreadsheet.

    I worked on the GREP query "~ b (\d\d) ~ b ', which is a paragraph return, followed by two digits, followed by another paragraph of return

    and then it is replaced by ' \t $1 ~ b ', which is a tab, found two numbers and a paratrooper returned.

    What I have to do is change the query to search for ANY number of digits, (which may be delimited by commas: e.g. 23, 36, 48, 50), then replace with a tab + found text.

    I guess what I'm looking for is a way for the query find "any text between two paragraph returns, no matter what that length", but I don't know how to do this. All of the generic options seem to find a single exampler (a figure, a character etc.)

    And you came so far

    Repetition operators are? (zero or one), * (zero or more) and + (one or more times). You can also specify the exact number: {at least up to the}.

    All of these operators are "greedy" by default - they match as much as possible. To to match as less as possible (which I'm sure you will come, sooner or later), add another? After the expression of repeat.

    If this is a number, then possibly another (which will be always included):

    \D\d?

    and what a figure, then zero or as much as 9999999,93856 million:

    \D\d*

    which is functionally identical

    \d+

    And it is between 3 and 8 figures but will be forced to use the shortest possible match:

    \d{3,8}?

    Having said that: a quick & dirty solution for your real problem is to find any amount of numbers, spaces, and comma:

    ~ b [\d,] + ~ b

    (there are more here because otherwise it would correspond also to an empty line). The [..] a list of the hooks - it will match to any unique inside code.

    A more complicated but 'cleaner' way is looking very precisely that for many, comma, space, number sequences - it is cleaner because it lines poorly trained (comma without a space) is fried!

    (She also has another code - operators in parentheses. Look at their place in a good reference GREP - lost people are enthusiastic about Peter Kahrel O'Reilly title, because there on the use of GREP in InDesign.)

    ~b\d+(, \d+)*~b)

  • How can I say ios10 music playing ONLY what is loaded on the phone?

    How can I say ios10 music playing ONLY what is loaded on the phone? There was a way under ios9, but I can't find anything on ios10. When I shuffle a kind (like ROCK that has only 4 artists, I chose it), I want to shuffle only what is loaded on the phone, not what's on my mac (in the cloud)... I load only a few artists both because of space constraints. I have over 200GB of music on my mac...

    I don't want to see the playlists and artists who are not loaded on the phone either, but I can't find how to solve either!

    Launch the music application and go to the library > music downloaded. This shows that what is stored locally on the phone.

  • How can I use my instore credit for a movie

    How can I use my instore credit for a movie

    Hello R Larson,

    I see that you are wanting to use a store credit for a movie. I'll be happy for you have said in the right direction. First of all, let's see if we can find out if the credit is a credit of iTunes gift card or a credit from the Apple Store. This article will help you determine what may be:

    What kind of card do I? -Apple Support

    If credit is iTunes, you can just check your balance using the instructions found in the section below and use to either rent or buy a movie to display:

    See your credit balance - Apple Support iTunes

    If the store is an Apple Store Gift card credit, you would not be able to use iTunes to watch a movie.

    I hope this helps. See you soon!

  • How can I use a few icons on the personal bar

    I would like to see all my favorites... so, how can I use only the icons and not the text on my bookmarks bar?

  • How can I use Office Update without the Office CD?

    How can I use Office Update without the Office CD? On the microsoft Web site, I clicked the options which mean that I would not need the CD (which was not provided with the laptop), but poartway through the service pack update, I get a request for the Office 2000 Professional CD.

    Any suggestions?

    Hello

    Did you mean an office or a note?
    As far as I know the a Note is part of the recovery Image and the CD is not supplied with the unit. In addition, Toshiba units are not delivered with the Office 2000 software.

    However, have you checked to aid either in Word update function?

    You will find an option called verification of updates
    http://Office.Microsoft.com/en-us/officeupdate/default.aspx

    Good bye

  • How can I use bluetooth on my Satellite C850-B906

    Please help me. How can I use bluetooth on my Satellite C850-B906. I can't find on the bottom of the search, and even in the PC device, bluetooth is not there. This laptop has bluetooth according to its specifications. (Bluetooth / WiFi (802.11B/G/N).)

    Good response will be highly appreciated.

    Thanks in advance!

    Hello

    I m not sure but I think you've got your laptop computer without an operating system preinstalled.
    The question is: which OS you have installed and that you have installed all the drivers needed, including BT (Toshiba BT stack) software?

  • How can I use on my M40X with WinAmp media buttons?

    Hello
    Today, I received my M40X and I have a question.
    There are 5 media as left button on the keybord (CD/DVD, play/pause, Stop, <->)
    Is it possible to use them with WinAmp?
    With the help of Toshiba, I had the CD/DVD button used to start WinAmp (by allows him to launch a .exe) but the work of Play/pause...don´t. The field of media Apps the only player that I can choose is Win MP10 (I hate this piece of sh * t).
    How can I use these buttons with WinAmp?

    Hello

    As far as I know Toshiba controls have been tested and designed only for Microsoft Media Player and WinDVD. How this topic says:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=3621&MessageID=11461#11461

    I n t have any experience with WinAmp but I found useful info in this forum on this topic:

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=6673&MessageID=24448#24448

    Select this check box.

    Good bye

  • How can I use the AppleCare with replacements USA helmet in Israel?

    How can I use an AppleCare with replacements USA headphones for my iphone in Israel 6plus? Am I covered overseas?

    Technically, no. The warranty is valid only in the country where the phone was originally sold. However, that restriction is based on the differences between the models of phones sold in different countries and the availability of substitutes service. You may very well be able to get the headphones replaced here since there is no difference between those who were included in phones AND those that are included with the phones sold in your country. Make an appointment at the genius bar or take it to your local CENTER and see what they can do for you.

  • How can I use the speed dial on my Motorola W490?

    How can I use the speed dial on my motorola W490? I have followed the instructions on the manual book, but did not work.

    The result, I received the screen is "unauthorized."

    Pls help. THX.

    Desiree-

    Can you tell us what steps you took to set your speed dial and use it?

    W490 User Guide

    On page 61, you can find information about adding dial numbers to speed up and 62 mentions how you dial. For example if you have saved your Uncle Paul as Dáil speed 3, you simply hold the button 3 to call this contact.

    Mark

    Support Forums Manager

  • How can I use iwatch with lpad2

    How can I use iwatch with lpad2?

    You can not. Apple Watch is only compatible with the iPhone.

    Read the first paragraph here:

    https://en.Wikipedia.org/wiki/Apple_Watch

  • How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?

    I want to integrate the ANSI C sample program ReadDigPort - ExtClk.c in my own big package.

    I want to use the internal clock of the BNC NI USB-6259 (.. 80 kHz 120 kHz).

    In the document:
    High speed M: Series Multifunction DAQ for USB - 16-bit, up to 1.25 MECH built-in BNC connectivity. / s,.
    is written:
    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    How can I use internal clock case OR USB - 6259 BNC for the acquisition of digital data in my own big software?
    With what other subsystem on the device can generate a source of the clock? How?

    It is possible to set a clock on an internal counter (for example ' Dev1/ctr0"):
    Creates channels to generate digital impulses that define the freq and dutyCycle and adds the channel of the task that you specify with taskHandle.
    DAQmxCreateCOPulseChanFreq (taskHandle, "Dev1/ctr0" units, clockName, idleState,
    initialDelay, freq, the duty cycle); works

    But it is not possible to drive this internal clock to a terminal (for example "/ PFI0/Dev1"):
    DAQmxErrChk (DAQmxCreateCOPulseChanFreq (taskHandle, "/ PFI0/Dev1", clockName, units, idleState, '))
    initialDelay, freq, the duty cycle); does not work: error DAQmx: measurements: type I/O of the physical channel does not match the type of I/O required for the virtual channel you create. Name of the physical channel: PFI0. Name of the virtual channel: clock

    The sample clock source can be derived from an external terminal (for example "/ PFI0/Dev1"):
    Sets the source of the sample clock, the sample clock rate and the number of samples to acquire or generate.
    DAQmxCfgSampClkTiming (taskHandle, "/ PFI0/Dev1", maximumExpectedSamplingRate, DAQmx_Val_Rising, ")
    DAQmx_Val_ContSamps, bufferSize); works. Acquire or generate samples until you stop the task

    But it is not possible to derive the internal counter of the clock (for example ' Dev1/ctr0"):
    DAQmxCfgSampClkTiming (taskHandle, "Dev1/ctr0", maximumExpectedSamplingRate, DAQmx_Val_Rising,
    DAQmx_Val_ContSamps, bufferSize); does not work. Error: Acquire or generate samples until you stop the task: make sure that the name of the terminal is valid for the specified device. See Measurement & Automation explore valid names of terminals. Property: Property of DAQmx_SampClk_Src: DAQmx_SampClk_ActiveEdgeSource device: Terminal Source Dev1: Dev1/ctr0

    Hi datafriend,

    using what it says is correct:

    Or sample DI source clock: Any PFI, RTSI, HAVE sample or convert clock, AO, Ctr n out internal and many other signals sample clock
    The digital subsystem doesn't have its own dedicated internal synchronization engine. Therefore, a sample clock must be provided another subsystem on the device or from an external source.

    This means that if you do not use an external signal as clock you can use the sample clock to HAVE it on board or at the output of the internal counter.

    There are also 2 ANSI C examples in this regard:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4485

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/4488

    So in both cases you have to use a fictitious task you need only for the generation of the internal clock (HAVE or CTR)

  • How can I get WMP to find all my songs that are stored on an external hard drive?

    I bought an external hard drive to store music for my product and WMP adds only about 30% of the songs to the Player library.  Some are wma and some are in mp3 format (added to the library and which must still be added).  I tried to uncheck Read-only after reading some responses online, but who did not stick and nothing changed.  How can I get WMP to find all my songs?

    I couldn't change them to read-only.  Fortunately after the computer restarts several times it work itself.

    Thanks for all the tips!

Maybe you are looking for

  • Touchpad stopped working on my new C850 Satellite

    I have new Toshiba Satellite C850-B293 after a day can touch pad didn't work.Can someone help me? I already check the setting and I put in default, but still changes now. Please help me...

  • I want to reformat the C drive, but rogue program won't let me.

    I need to reformat my C:\ drive because my old computer has too much garbage.  However, when I click on the file menu or edit a menu program uninstalled this was't completely uninstalled guard appearing to install something.  I need to go to other ar

  • HP Pavilion: Bios Admin or power on password

    Hello I have a Hp Pavilion protectsmart, when I boot his request for an Admin or a power on password Serial number is [removed personal information] Press enter several times and the system hangs with code 57929804 Please could someone help Thank you

  • research program box and can not find the file on my computer

    I went to click Start, type cmd, no program and file search box, where to type sfc/scannow to.

  • How to analyze a list of json

    Hi, I want to parse a Json cities list to use on a qml list, I was using ropes and properties and make them available on my qml but with just a single city, and in the labels, not a list, so how can I do? That's what I got so far BB::data :: JsonData