How can I automatically add 1 en-space after 2,000 bold lead-ins?

I have a long list (2000-3000 paragraphs) and each paragraph begins with a bold word. I want to change the normal space character following the bold lead-in to an en-space or maybe some other character without affecting all the other spaces in the document. Is there a way to do this automatically? I don't know how to do scripting or use scripts. Sometimes I've figured out ways to set up  Find / Replace to do what I need, maybe with a few different steps, but I haven't been able to figure out a way to accomplish this. I run into similar problems frequently and would love to find ways to do this automatically.

^ is start of Paragraph. () defines a match subgroup, and \w+ means one or more "word characters" so ^(\w+) means find a word at the start of the paragraph. \s is any white space, including returns, so we're finding the first word and any whitespace that follows it.
The change is $1 which stnads for the found text in the first set or parentheses and ~> which is an en space, so we're replacing the first word and space with the first word and an en space.
You can google for a script called WhatTheGREP by jongware, too, that will translate any GREP string for you.

Similar Messages

  • How can I stop Dreamweaver from inserting spaces after variables?

    How can I stop Dreamweaver from inserting spaces after
    variables?
    Example:
    "...write to you@<!--#echo var="uu" --> and ..."
    is changed by DreamWeaver to
    "...write to you@
    <!--#echo var="uu" -->
    and...>
    When saving or doing other editing, DreamWeaver adds a space
    and a line break before and after the variable. The line break
    isn't hard and doesn't show, but the spaces added before and after
    the variable DO show in browsers. That looks rather stupid and
    incompetent, and requires hand editing on the server after
    uploading.
    Line wrap and code formatting are turned off.
    Is manual correction after uploading the only solution to
    this problem?
    Thanks
    DearWebby

    DearWebby,
    We already discussed this offline, but I want to post the fix
    here for
    the sake of posterity:
    1. Edit > Tag Libraries…
    2. Open HTML Tags folder
    3. Select "directive" folder icon (not really a folder)
    4. Change Line breaks: setting to "No line breaks"
    5. Click OK
    HTH,
    Randy
    > How can I stop Dreamweaver from inserting spaces after
    variables?
    >
    > Example:
    > "...write to you@<!--#echo var="uu" --> and ..."
    > is changed by DreamWeaver to
    > "...write to you@
    > <!--#echo var="uu" -->
    > and...>
    >
    > When saving or doing other editing, DreamWeaver adds a
    space and a line break
    > before and after the variable. The line break isn't hard
    and doesn't show, but
    > the spaces added before and after the variable DO show
    in browsers. That looks
    > rather stupid and incompetent, and requires hand editing
    on the server after
    > uploading.
    >
    > Line wrap and code formatting are turned off.

  • InCopy GREP: how can I search for a single space after a sentence?

    In the Find/Change box in InCopy, there's a preset GREP command: "Multiple Space to Single Space." In the books I'm working on, we need to do the opposite. I know I should learn regular expressions, and I'd like to, but frankly I'm pressed for time, so here's my question:
    What is the exact regular expression I should paste into the Find/Change box to find single spaces before sentences?
    Thanks!

    In Find, in the GREP area, you need to enter
    Find What: \. \S
    backslash-period = find a period
    tap the spacebar for a space ...there's a space after the period above
    backslash-cap S = not whitespace
    If you want to change it to two spaces after a period, group the Find expression so you can replace the Found text in the Change to field.
    Find What: (\. )(\S)
    Change To: $1 $2
    (I added a space after $1 so IC adds a second space after the period)
    AM

  • How can I automatically add elements to enum contraol

    Based on another function I would like to add elemets to an enum control automatically.
    So for example one time the elements might be 1,2,3,6 another time 1,3,5,6,7
    I would greatly appreciate your help on this
    Thanks

    Ranjeet_Singh wrote:
    Sometinhg like this.
    Why so complicated? Why the sequence? Why convoluted string operations? Why so many property node reads and writes?
    Here's about the same...
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    addItems.png ‏5 KB
    addItems2.png ‏4 KB

  • How can I automatically add exif data to a watermark?

    As the subject suggests, I’m looking for a way to watermark photo and automagically include image attributes like aperture, shutter speed, etc., in addition to my nameplate.
    Does such a plug-in or add-on exists?

    Check out this plugin: LR/Mogrify 2 - Add Watermarks, Border and Text Annotions to Images Exported by Adobe Lightroom 2

  • How can I automatically close a PDF document after it is done printing?

    Hello all,
    To cut to the chase I am using the System Exec.VI to open a PDF with Adobe Reader 8.0 and printing the document.  I can do this without a problem.  The problem is I would like to have this window close automatically when it is done printing.  I have seen on the web that the switch to make this happen is /t, but for some reason my pdf doc is not closing.  My command line looks like this
    "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe" /t  "path to the file" "default printer name"
    Is there another way to terminate the window not using switches in the command line statement?
    I have tried using active x calls to open the doc and print but I am not seeing any print options in the active x calls.  I have searched thourgh a large portion of the classes and could not find any print statements.  I have also tried opening the doc with the system exec.vi and priting and then closing it with active x but I get an error message back.
    Has anyone had any success in opening a pdf doc, printing and then closing the window automatically afterwards? 

    Hi gammalight,
    i use Adobe Reader 7.0 and it works in this way for me. The document is printed with the default printer.
    Mike
    Message Edited by MikeS81 on 03-28-2008 04:26 PM
    Attachments:
    Unbenannt.PNG ‏5 KB

  • How can I automatically delete from deleted folder after 2 weeks

    I am sure my deleted folder used to get rid of items after about 2 weeks but now it has deleted items from 2010. How do I restore this facility.
    Thanks
    John

    Tools menu (ALt+T) > account settings > synchronization and storage settings and set it to what you like. Not the mail will also be deleted from the server.

  • When using Mavericks, how can I automatically replace 'i' with 'I' when typing?

    When using Mavericks, how can I automatically replace 'i' with 'I' when typing?
    It was easy to do prior to mavericks using system preferences (language and text), but now I can only submit a 2 letter word to replace, not a 1 letter word. I have tried using a space but it doesn't allow that. I would assume that most people would love to be able to type quickly without having to make uppercase I all the time (first world problem i know), so I can't understand why apple have removed this feature.

    There is the shift key, or text replacement approach, providing you have enabled two things:
    Edit > Substitution > √ Text Replacement
    System Preferences > Keyboard > TextClick + to add a replacement
    Replaceii[spacebar]
    With
    I[spacebar]
    Press return
    Quit System Preferences
    Now, when you type ii, you will see a pop-up offering I.
    In the OS X App Store, search for WordService. This free collection of Services will enable you to just type your content, select it, and then choose the Service item, “Initial Caps of Sentences.” It does what it says.

  • How can i clean up my disk space on my MacBook Pro

    how can i clean up my disk space on my MacBook Pro something  like a disk cleanup on a pc?

    Those things you did on your PC you need not worry about on your Mac. Most is done behind the scenes.
    Kappy's Personal Suggestions About OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.)
    If you are using a pre-Leopard version of OS X, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  (These utilities have limited or no functionality with Snow Leopard, Lion, or Mountain Lion and should not be installed.)
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. (There is no confirmation that this version also works with Lion or later.)
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner.
      2. Data Backup
      3. Deja Vu
      4. SuperDuper!
      5. SyncTwoFolders
      6. Synk Pro
      7. Synk Standard
      8. Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Always have a current backup before performing any system updates or upgrades.
    Additional suggestions will be found in:    
          1. Mac Maintenance Quick Assist,
          2. Mac OS X speed FAQ,
          3. Speeding up Macs,
          4. Macintosh OS X Routine Maintenance,
          5. Essential Mac Maintenance: Get set up,
          6. Essential Mac Maintenance: Rev up your routines,
          7. Maintaining OS X, 
          8. Five Mac maintenance myths,
          9. How to Speed up Macs, and
        10. Myths of required versus not required maintenance for Mac OS X.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity or 20 GBs, whichever is greater, as free space.

  • How can I automatically have a new tab always be a copy of the current active tab?

    The add-on extension "NewTabURL" (by "sogame") provided the option I want and used for a number of years. But it stopped working when Firefox was updated to version 16.0. When I click for a new tab, all I get is a completely blank tab. How can I automatically have the new tab always be a copy of the current active tab?
    Can the extension "NewTabURL" be revised to work in version 16 and/or version 17? If not, how else can I get the new tab functionality that I desire? I can't seem to find any other extension that provides that functionality.
    Milt Beychok

    My trackball has 4 buttons and a scroll wheel. Each of the 4 buttons is programmable. The 4 buttons are normally pre-programmed for single-click, double-click, drag and right-click by simply pressing on them
    Each of the 4 buttons may be programmed to also have other functions. For example, I programmed "control/single-click" to produce a middle click. I could also have used "shift/single-click" or "alt/single-click" to produce the middle-click. Or I could have similarly programmed double-click or drag or right-click. The Kensington Expert Mouse is quite versatile ... once you get the hang of programming it.
    I have had it for about 4 years and I had never had the need to program one of them until you told me about using a middle-click.
    Milt Beychok

  • How do I automatically add filenames as keywords?

    I want my filename to always be added as a keyword/metadata.

    darn okay. i name them according to a hr/mm convention for race photos. then they only have to search for the hh/mm.
    thx for the help though
    Show me your passion and I'll immortalize it.
    Scott [email protected]om
    Date: Wed, 17 Feb 2010 09:40:46 -0700
    From: [email protected]
    To: [email protected]
    Subject: How do I automatically add filenames as keywords?
    First, I still don't understand why anyone would want to search by file name if search by keyword was available.
    Putting the file name into a keyword essentially defeats the purpose of keywords. If you have 1000 files in your Lightroom Library Module, then you have 1000 distinct keywords, and I can't see how that is useful to anyone.
    But the bottom line is that I don't think Lightroom has the capability of putting file name into the keyword field.
    >

  • How can I automatically prepend comment blocks to stored procedures?

    How can I automatically prepend comment blocks to stored procedures?
    In my organization, the standard is to comment all stored procedures with a comment block that looks like this:
    /*-- =============================================
    -- Created by: <Owner>
    -- Created date: 01/08/2012
    -- Purpose: Inserts new setting value, code and description
    -- Modifications:
    -- Modified by: <Owner>
    -- Modification date: 01/08/2012
    -- Purpose: Inserts new setting value, code and description
    -- =============================================*/Thanks.
    select * from v$version;
    BANNER                                                                        
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production             
    PL/SQL Release 11.2.0.2.0 - Production                                          
    CORE     11.2.0.2.0     Production  Edited by: xDeviates on 01-ago-2012 7:37
    Edited by: xDeviates on 01-ago-2012 8:31

    Hi,
    If I want to write a package called pk_fubar, I copy the following script and call it fubar.sql
    --     ==========  package_name.sql starts here  ==========
    --     Package_Name.sql
    SPOOL     &home_dir\package_name.lst
    PROMPT     .     H   H  EEEE     A    DDDD
    PROMPT     .     H   H  E       A A   D   D
    PROMPT     .     HHHHH  EEE    A   A  D   D
    PROMPT     .     H   H  E      AAAAA  D   D
    PROMPT     .     H   H  EEEEE  A   A  DDDD
    @@package_name_head
    PROMPT     .     BBBB    OOO   DDDD   Y   Y
    PROMPT     .     B   B  O   O  D   D   Y Y
    PROMPT     .     BBBB   O   O  D   D    Y
    PROMPT     .     B   B  O   O  D   D    Y
    PROMPT     .     BBBB    OOO   DDDD     Y
    @@package_name_body
    SPOOL     OFF
    @@package_name_test
    -- EXIT
    --     ==========  package_name_head.sql starts here  ==========
    CREATE OR REPLACE PACKAGE     pk_package_name
    AS
    FUNCTION     sign_in
    (     in_user_name     IN     VARCHAR2
    ,     in_password_txt     IN     VARCHAR2
    RETURN     PLS_INTEGER
    END     pk_package_name;
    SHOW ERRORS;
    GRANT     EXECUTE     ON pk_package_name     TO schema_name_some_role;
    --     ==========  package_name_body.sql starts here  ==========
    CREATE OR REPLACE PACKAGE BODY     pk_package_name
    AS
    --  Procedures related to SCHEMA_NAME ...
    --  2012 July 23 -- Package started with proc_x.  (Frank Kulash)
    --     **   local procedures and variables   **
    --     **   x   **
    --     **   initialization section   **
    --     The following code is executed once per session, when the package is loaded.
    BEGIN
         set_var     ( 'DT_FMT_TXT'
              , 'YYYY-MM-DD HH24:MI:SS'
    END     pk_package_name;
    SHOW ERRORS;
    --     ==========  package_name_test.sql starts here  ==========
    --     PACKAGE_NAME_TEST.SQL -- Test procedures in schema_name.pk_package_name
    SET     DOCUMENT     OFF
    SET     SERVEROUTPUT     ON     SIZE     10000
    ALTER SESSION     SET NLS_DATE_FORMAT = 'DD-Mon-YYYY HH24:MI:SS';
    SPOOL     @@package_name_test.lst
    PROMPT
    PROMPT     ***********************
    PROMPT     **  Testing x  **
    PROMPT     ***********************
    PROMPT
    SPOOL     OFFThen I replace package_name with fubar, and schema_name with the actual schema name. Finally, I cut off parts from the end to create fubar_test.sql, fubar_body.sql and fubar_head.sql. You could easily include a multi-line procedure comment template in this script. Every time you add a procedure or function, ciopy and paste that comment template, and then modify the copy.

  • How can I automatically close a dialog box using Javascript after I click the OK button to submit it?

    How can I automatically close a dialog box using Javascript after I click the OK button to submit it? I don't want to have to X out of the dialog box after I am done.
    Thanks
    Linda

    JS can not interact with open dialogs in any way, unless it's a dialog
    created in JS using the Dialog object.
    On Thu, Jul 24, 2014 at 11:13 PM, lindaeliseruble <[email protected]>

  • How can i get more local storage space on my iphone 4

    I want to put more song on my iphone 4 but it keeps saying i dont have enough local staorage space. How can i get more local storage space on my iphone 4?

    You don't. Delete 'stuff' you don't need or buy a phone with more storage. you can not increase or upgrade the internal storage in the iPhone.

  • How can I (automatically) import new photos of the photostream on my local disc (Mac)? Don't want to use new icloud service. Simply import.

    New Photo app on Mac.
    How can I (automatically) import new photos of the photo stream on my local disc (Mac)? Don't want to use new icloud service. Simply import.
    With iPhoto every new photo was automatically imported and saved on my local disk (with "full resolution" that's what I only need). In the new photo app I have still my photo stream and when I move a photo (drag and drop from the photo stream) to a new album it indicates a (plus). My understanding is that the photo is now copied to my local disk. But when I deleted the photo in the photo stream it was also deleted in the album !?
    If that is the case I can use the photo stream only until I reach the max of 1.000 photos, then I have to delete photos and I will have no copy left.
    How can I "physically" copy a photo of the photo stream to my local disk? I just want to "transfer" all pictures taken with Ipads, Iphones to my central storage on the Mac. Please don't propose to connect it via iTunes (cable) to the Mac.
    Any other suggestions?
    thx
    -Tom

    The amazing device cannot do it because no amazing developer has written an app for it.  There is some interest, others have asked, but i have a hunch that the market is fairly limited, and no developer has jumped at the chance just yet.
    Any sort of tethered approach means try to feed the material to the pad thru the cck.  Which means the app would have to use the allowed/existing cck pathway in a manner that does not violate the sandbox rules.  That may be the problem.

Maybe you are looking for

  • Position sensor with accelerometer

    Hi,           Recently, I have finished a project with accelerometer to detect the noise when the motor stroke hit some part or near by mechanical part. I wonder about using position sensor to my project in order to detect the stroke or mechanical pa

  • Syncing iphone please help!!

    trying to sync new music to my iphone but keep getting the same message (itunes has an unknown error occured 13019) it will add games and apps to my phone but not music it starts syncing but then has this error? my itunes is up to date. please help!!

  • Clipping Path vs Alpha Channel

    Not sure if this is the right place to ask, but wondering which is better for outlined images (no soft transitions, just hard outline.) I've used both and don't see an advantage to either EXCEPT when converting an InDesign file to PDF. Files with PSD

  • Showing vista applications on my mac

    I am trying to help my elderly father (who is in another state) with his computer, but he is on a PC and I'm on a Mac. Does anyone know a way to run or view Vista and its programs on my Mac, so that I can see what my dad is seeing so that I can direc

  • OVM - using JDE Templates

    Hello, I'm new with OVM and starting to work with JDE's E1 templates. I would like to start by using the database template. I have the database .img file extracted and ready to go in the running_pool directory. The next steps are to launch the script