GREP add space after comma

I'm sorry this is so basic, but it's making me insane. I need to find commas which are immediately followed by any letter character and put a space between the comma and the letter.
Example: MD,DDS,PHD needs to be MD, DDS, PHD
I know I start with this: (,)[\l\u]
I just don't know how to keep the comma and same character.
Thanks for any suggestions.

You can use the following expression
Find: (,)(\w+)
Change: $1 $2
Hope it solves your query

Similar Messages

  • Inserting white space after comma, full stop, etc...

    Hello,
    I have a text file. I want to add a blank space after all commas, full stops, exclamation marks and etc in that file.
    How can I do that?
    Edited by: user13223181 on Oct 5, 2010 2:55 AM

    suri_java wrote:
    you read the text file and append to buffer read and [program Example|http://www.roseindia.net/java/beginners/java-read-file-line-by-line.shtml] and change the file as per your requirement .
    I hope its helpful . Code examples on that site are largely flawed in the extreme. What's worse, they don't even respond to feedback or implement suggested improvements.
    db

  • Add space after bullet list

    I would like a way to control the space AFTER a list of bullet points ends. The last item in a bullet list, in other words, before the text that follows. I can control spacing between paragraphs easily, but with bullet list, each item has a paragraph return.
    I could manually add additional spacing on the last item in a bullet list. But it'd be cool if I could have that in my Styles. Maybe it's a feature request.
    As a web developer, I know in HTML I can control spacing before and after a list (ul).

    You need to have a special paragragh style for the list. There is a default bullet list style in Pages 4. Use it for the list.
    For the Body text, use that style for the body text, set both line spacing before and after. Like you say you can't set it for the bullet list as all lines in the list will get more spacing.
    Or do what I usually do I add a paragraph break before and after the bullet list.

  • Adding spaces in comma-delimited lists

    I'm pulling from a database comma-delimited db that appears
    like so:
    Carpet,Hardwood,Tile
    How can I add spaces after the comma (if there's commas at
    all)?

    #Replace(yourstringorvar, ",", ", ", "ALL")#
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Space after in one style affecting the style before it

    I have bit of text like this:
    Bold head
    regular body
    when I add space after to the regular body style, it has the effect of adding space after the Bold head, but when I directly apply space after using the Control bar, this doesn't happen!
    my regular body style has no space before.
    Can anyone see why space after in one style would appear to affect the previous style.
    when I say "previous" and "before" I mean in the order they appear relative to each other.
    thank you!
    John

    No, there are no manual overrides. I tested with a manual formatting just as an experiment, but then removed it immediately afterward.
    InDesign as with many other programs will indicate a modified style with a little "+"  None of my text shows this + sign next to their styles.
    Thank you!

  • Control space after the Drop Cap

    ID3, XP
    We character style drop caps. When the DC is a single character, we use the tracking in the character style to add space to the right of the dropped character. However, this method cannot be used when it is a two character drop, in this case, chapter numbers are dropped 2 lines. We want to adjust the space between the dropped number and the start of text, and keep that space equal on both lines.
    Any suggestions?
    Thanks

    The first issue is still that humbled wasn't able to add space after the drop caps and maintain alignment of the text. Bottom line is that  his method of using character spacing was a bad hack. I'm pointing out that the alternative solutions he tried (ex. post #4) didn't work because he wasn't using the correct value for the number of drop characters. And per his post #21, he is still assuming that 2 is the correct value to define a double digit drop cap. If he gets past that, solutions to other complications may come easier.<br /><br />In fact, unless he needs some specific sized space HIS WHOLE PROBLEM FROM START TO FINISH could be solved simply by selecting 3 as the number of characters for his drop caps rather than sticking with 2. That would have the effect of including the space after the chapter numbers as part of the drop cap making it larger and adding considerably more space.<br /><br />If he does need more space, then he is going to have to add another character. But that character still has to be included in the DC character count:<br /><br />12<space>Text (3 drop caps)<br />12<hardspace>Text (3 drop caps)<br />12<space><hardspace>Text (4 drop caps)<br /><br />He can even use a tab character for a specific indent if he wants. Just switch a tab for the hardspace above.<br /><br />P.S. The same logic holds true for in single drop caps. If you want extra space after, increase the drop cap count to 2 to include the space after.

  • Space after paragraph

    The new version of Pages is missing a few things, or at least I can't find them (flow between text boxes being foremost). Where is the tool to add space after and/or  before a paragraph?

    Try this:
    https://discussions.apple.com/message/23522820

  • Add space

    Hi!
    I have a string lets say str... i know what the maximum length of this string can be .Lets assume it to be 30. the data value thats coming into this string is of length 5 chars. what i want to do is to add spaces after the data value upto its maximum length..liek in this case i should add 25 spaces to make it of length 30. Is there any function in java using which i could do it.There is an option for finding the present length and using a loop to add spaces.. but that would be a bit lengthy.. Pls help .. Thanx..

    > PS... i did not get what you meant by 1 of
    loop....and in that length() function
    http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html
    In the link above there is given an example of a for loop (statement). The variable int i starts at 1 and gets incremented to a certain value. You need to adjust the initial size and the "end" size of i.
    In the loop you append, or prepend, a white space to your String.

  • 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

  • Add space between set of Symbols - Grep Question

    hi everyone,
    I have another Grep question someone hopefully can help with. I need to find the following symbols in my long document < > + =      
    All these symbols need space either side of the character. I would like to setup a grep expression and have it find the symbols and add spaces either side. So far I can find each symbol but can't figure out how to add spaces before and after with the replace feature?
    find:
    =|<|>|+
    replace:
    can anyone help..
    lister

    Use this line in Find option: \+|\=|<|>
    Use this line in Replace option: <space>$0<space>
    Siva

  • Possible to control space after periods and commas?

    There's a font i'd like to use as a body text font, but sometimes the spaces after periods and commas are inadequate. Is there a way to control this in InDesign? or must this be resolved by manipulating the font in a font editor?
    thanks
    Kurt Hoffman

    but sometimes the spaces after periods and commas are inadequate...
    I'm not sure either solution will really work well with justified text.
    When you say sometimes, it sounds like your text is justified and the space after periods is variable. Peter's GREP solutions would track the space after a period but the amount would still be variable when the text  is justified. So you could also look at the Justification setting for the style:
    The default Justification setting which allows a significant difference between min and max word spacing, and no difference in letter spacing:
    Changing the Word Spacing to 90% | 100% | 120% and the letter spacing to -2% | 0% | 2% creates a more consistent space after the periods.

  • How can I add dots after text to fill the remaining space in a table cell?

    What is the most efficient way to add dots after text to fill the remaining space in a table cell? I know it is possible using tabs but is this possible using a table?

    You can put a tab inside a table cell using Option+Tab
    Then just set the right-aligned tab stop and the right edge of the table cell and add the leader.

  • DG4ODBC adds black spaces after every character

    I am trying to set up HS using Oracle 10.2.0.5 on RHEL5 (64 bit), FreeTDS, and MS SQL Server.
    The ODBC Driver works fine:
    [oracle@phsbe1pr ~]$ isql sfasql_freetds_dsn sqlSinfoOne ***
    | Connected! |
    | |
    | sql-statement |
    | help [tablename] |
    | quit |
    | |
    SQL> select name, len( name ) from sys.objects where object_id < 20 ;
    ---------------------------------------------------------------------------------------------------------------------------------------------+
    | name | |
    ---------------------------------------------------------------------------------------------------------------------------------------------+
    | sysrscols | 9 |
    | sysrowsets | 10 |
    | sysallocunits | 13 |
    | sysfiles1 | 9 |
    | syspriorities | 13 |
    | sysfgfrag | 9 |
    ---------------------------------------------------------------------------------------------------------------------------------------------+
    SQLRowCount returns 6
    6 rows fetched
    SQL> quit
    [oracle@phsbe1pr ~]$
    [oracle@phsbe1pr ~]$ tsql -S SFASQL_FreeTDSName -U sqlSinfoOne -P ***
    locale is "en_US.UTF-8"
    locale charset is "UTF-8"
    using default charset "UTF-8"
    1> select name, len( name ) from sys.objects where object_id < 20
    2> order by 1
    3> go
    name
    sysallocunits 13
    sysfgfrag 9
    sysfiles1 9
    syspriorities 13
    sysrowsets 10
    sysrscols 9
    (6 rows affected)
    1> exit
    [oracle@phsbe1pr ~]$
    But when I use the dblink i got every string doubled with spaces after every char:
    [oracle@phsbe1pr ~]$ sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.5.0 - Production on Mon Jul 23 17:22:25 2012
    Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> set linesize 120
    SQL> column name format a40
    SQL> select "name", length ( "name" )
    2 from sys.objects@sfasql_link
    3 where "object_id" < 20
    4 order by 1
    5 /
    name LENGTH("NAME")
    s y s a l l o c u n i t s 26
    s y s f g f r a g 18
    s y s f i l e s 1 18
    s y s p r i o r i t i e s 26
    s y s r o w s e t s 20
    s y s r s c o l s 18
    6 rows selected.
    SQL>
    What can I do ?
    Mi init.ora is:
    HS_FDS_CONNECT_INFO = SFASQL_DSN
    HS_FDS_SHAREABLE_NAME = /usr/lib64/libodbc.so
    HS_FDS_TRACE_LEVEL = off
    HS_FDS_TRACE_FILE_NAME=/tmp/odbc_hs_sfa.trc
    HS_FDS_SQLLEN_INTERPRETATION = 32
    set ODBCINI=/etc/odbc.ini
    adn odbc.ini contains:
    [SFASQL_DSN]
    Description = sqlserver
    Driver = FreeTDS
    # Servername = SFASQL_FreeTDSName
    Server = phsspbe.perfumeholding.intra
    Address = 172.17.0.45
    Port = 1433
    Database = SFA_INTERSCAMBIO
    TDS_Version = 8.0
    Language = us_english
    TextSize = 1999
    PacketSize = 1470
    ClientCharset = ISO-8859-1
    DumpFile = /tmp/odbc_sfasql_dsn.log
    DumpFileAppend = Yes
    DebugFlags =
    Encryption = off
    #Trace = Yes
    #TraceFile = /tmp/odbc_sfasql_dsn.trc
    Thank you for every answer!
    Andrea

    1. Please add to the gateway init file HS_NLS_NCHAR=UCS2
    Then test again with a new SQL*Plus session.
    When it continues to fail, what's the character set of the Oracle database being used and how did you set the NLS_LANG in your environment?

  • Regarding releasing space by rollback segaments after commit

    Hi All,
    I am doing 8i production support.during the data archival activities i m facing a problem in rollback segaments. As we know after commit statement it use to free the space once all the transactions get over, but here its not releasing the space after long back also.
    please suggest me what to do ?
    do we have any tool by which i can check and release the space ? any other manual way ?

    [sibling post|http://forums.oracle.com/forums/thread.jspa?threadID=825754&tstart=0]

  • RH8 After conversion, added space after conditional tag phrase

    We just installed RoboHelp 8. After converting my 3 projects from RH7 to RH8, the system added spaces in between words of a condtional build phrase. That's great since it's much easier to see the words -- that was an improvement over version 7.
    However, it's also adding a space after the conditional build phrases, which is incorrect. It adds a space before a comma, adds a space before a period if the conditional build phrase occurs at the end of the sentence, etc. But it doesn't look like it does this in every case...I'm not sure why it did this, but it only happened after the conversion to 8.
    The generated help appears as in the example below. Note the space before the period in the first sentence and the space before the comma in the second sentence. It has done this on quite a few pages.
    Customer Definition Detail
    This page allows you to add a new customer or to edit an existing customer . If you are adding a customer , you must complete the detail information and then save it.
    Tried to upload the example of conditional build phrase, but it's not letting me.
    Thank you in advance for any help you can offer. This would be a lot to manually repair, so I'm hoping someone knows of a way to fix this using a setting.

    Thanks for your posts.
    After trying everything I could think of the only thing that resolved the issue was replacing any instance of back-to-back conditional text followed by any punctuation with two sentence exactly the same except for the conditional choice.
    For example, the original sentence (color indicates conditional build tag):
         For customersmembers, this field indicates transaction limits.
    would be changed to these two sentences:
         For customers, this field indicates transaction limits.
        For members, this field indicates transaction limits.
    I'll submit this as a RoboHelp 8 bug in the forums (if it hasn't already been submitted).

Maybe you are looking for