Questions for GREP gurus

I have large text files that I have to convert into tab delimited text to import into excel. The information in each "column" is just separated by multiple spaces (so it is not actually a true column) with a paragraph return at the end of each entry. I want to replace the multiple spaces with a single tab stop. I have figured out how to convert most of it except for one issue. at the end of each paragraph there is a one or two digit number preceded by 15 spaces and then another one or two digit preceded by 1 or more spaces (this varies). Kind of looks like this. (space) (space) (space) (space) one or two digit number (space) (space) (space) (space) (space) (etc...) another one or two digit number. I want to eliminate the spaces and just have a tab stop preceding each number and also keep the paragraph return after the last number. I am getting better with GREP searches but this one has me stumped. I can do multiple operations to get close to the results, such as search for multiple spaces and replace with tab stops, then search for multiple spaces again to try to clean it up, but that is kind of messy and imprecise. Any help would be appreciated.
Thanks
Randy

While this isn't going to teach you much — the ID GREP panel has a preset, "Multiple Space to Single Space" — select that, and change the "Change to" to
\t
for tab. Refine the scope to "Selection".
You can deconstruct this GREP if you'd like to see how it works.
d

Similar Messages

  • Question for scripting gurus: GREP search, change case make Smallcaps

    I have no knowledge of scripting at all, but this question keeps coming up during training sessions: is it possible to (java)script this:
    - Do a GREP search \u\u+
    - Change case to lowercase
    - Apply SmallCaps (or: apply character style)
    this would allow to search for acronyms and change them to smallcaps (or, even better: apply a character style with small caps and tracking)
    I know it is easy for OpenType smallcaps (do a GREP search, change to OT smallcaps) but this doesn't really change case. And some fonts used aren't OT.
    Anyone?
    Would be VERY apreciated!!

    But Harbs is a seasoned scripter who knows he'll get flamed if one of his scripts "just does not work" ;)
    Well, now that you mention it, the script is not really foolproof. It's a quick and dirty script which I threw together very quickly. It's missing any error checking, some of the variables global, and it's not in a private namespace. These are all things which could cause it to "just not work" ;-)
    Here's a more foolproof construct... (and it'll work on the current story if selected, or the whole document if there's no story selected) It will create a new character style if one does not exist and work on character styles within style groups as well. I wrapped the whole script in an anonymous function to give it a unique namespace as well.
    (function()
    if(app.documents.length==0){return}
    var doc=app.documents[0];
    // Change the following to your style name!
    var character_style_name = 'Small Caps';
    try{var range = app.selection[0].parentStory}
    catch (err){var range = doc}
    //comment out next line if you do not want styles.
    var charStyle = GetCharacterStyle(character_style_name,doc);
    app.findGrepPreferences = null;
    app.findGrepPreferences.findWhat="\\u\\u+";
    var finds=range.findGrep();
    for (var i=0;i<finds.length;i++){
    finds[i].changecase(ChangecaseMode.lowercase);
    //comment out next line if you do not want styles.
    finds[i].applyCharacterStyle (charStyle)
    //uncomment next line if you do not want styles.
    //finds[i].capitalization=Capitalization.smallCaps;
    function GetCharacterStyle(styleName,doc){
    var charStyles=doc.allCharacterStyles;
    for(var i=0;i<charStyles.length;i++){
      if(charStyles[i].name==styleName){
       return charStyles[i];
    return doc.characterStyles.add({name:styleName,capitalization:Capitalization.smallCaps});

  • SAP Questions for WM/LE certification

    Hi SAP Gurus,
    Can any one please forward to me a list of questions for SAP certification in WM/LE ?
    Thanks for your help.
    Regards,
    Manoj

    Hi manoj,
                 Can you fwd the links,questionaries & requied materials for LE Professional Certifications..asap.
    Thanks
    Jyoti

  • Strictly for ERP gurus

    Hi Oracle ERP guru,
    Am going to administer(or better still do a QA) an oracle SAP database system and i need help on the following.
    1. I need to know of the standards expected from an Oracle SAP database administrator. are there any documentation on these standards?
    2. Is there any need for multiplexing the control files?
    I traced 3 different control files from the initilaization parameters. On taking a close look at them, i found out the are located on the same disk in different folders.
    3. what do i do to the datafiles?
    They are located on the same disk though the disk is very large.
    4. what should i be looking out for WRT performance tuning?
    I would appreciate any other information that would be helpfull.
    Thank you in advance.
    Tolu

    Well, I don't think that all questions are only for ERP gurus ...
    Question 2 is not only for an Oracle SAP database: you've got an answer from Oracle Administration Guide: Oracle strongly recommends you use at least two control
    files stored on separate physical disk drives for each database. .
    Same for question 3:
    Place Datafiles Appropriately
    Tablespace location is determined by the physical location
    of the datafiles that constitute that tablespace. Use the
    hardware resources of your computer appropriately.
    For example, if several disk drives are available to store
    the database, consider placing potentially contending
    datafiles on separate disks.This way, when users query
    information, both disk drives can work simultaneously,
    retrieving data at the same time.
    See Also:
    Oracle Database Performance Tuning Guide for information
    about I/O and the placement of datafiles
    Store Datafiles Separate from Redo Log Files
    Datafiles should not be stored on the same disk drive that
    stores the database redo log files. If the datafiles and
    redo log files are stored on the same disk drive and that
    disk drive fails, the files cannot be used in your
    database recovery procedures.
    If you multiplex your redo log files, then the likelihood
    of losing all of your redo log files is low, so you can
    store datafiles on the same drive as some redo log files.Message was edited by:
    Pierre Forstmann

  • Questions for SRM Certification - urgent pls.

    Hi Gurus,
    Could anyone pls help me with SRM questions for certification.
    [email protected]
    thanks in advance.

    Hi gurus,
    I have the following questions, can someone pl. help me to clear my doubts ?
    1. With EBP 3.0, the classic scenario is replaced with the extended classic scenario.
    My question : Is it true ?
    2. The Business Connector for exchange of data between EBP and the catalog.
    What is Business Connector ? Is Business Connector means XI ?
    3. The message types and BAPIs that are defined in the distribution model are later
    transferred to the back-end in either synchronous or asynchronous fashion,
    according to type.
    Since the Model's can ONLY be distributed from EPB to back-end and regened in back-end,
    I may come back with more questions, please help me out. .
    If anyone have any SRM Certification questions, please pass on to me @ [email protected]
    u can count on my points.
    Thank you in advance.
    regards,
    Venkatesh Srinivasan.

  • FS10N - Various questions. Only Gurus!

    Dear Gurus,
    I have the following question for you:
    When I log into FS10N and enter a G/L account number for a given company code, I have the following problem with the following field called: ZUONR or 'Assignment'.
    The system reacts very strangely and proposes randomly various documents types he chooses freely such as:
    1- Material Number
    or
    2- Controlling order
    or
    3- Sales invoice number
    or
    4- Date which appears in different formats such as 20090122
    As you can see, there is no consistency of value as they change for no apparent reasons.
    Why is the system behaving this way?
    1- Is there a connection with a type of document?
    2- Is there a connection with different G/L accounts?
    3- Is this happening when the system posts sales invoices?
    4- When we set for G/L accounts "Sort Key" to be "Material Number" and post controlling closing procedures for PP, the system enters in this field "Order Number" from CO instead?
    We also can see that in FS10N
    Your help is greatly appreciated on this.
    Regards
    Chris

    Hi,
    For SD to FI account posting, this is a configuration of copy control where in you will specify what number needs to be updated in this field.  The following options are available.
    A   Purchase order number                                     
    B   Sales order number                                        
    C   Delivery number                                           
    D   External delivery number                                  
    E   Actual billing document number                            
    F   External delivery no. if avaialable, otherwise delivery no.
    Thanks,
    Krish.

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I have a new email address and my old email keeps coming up on icloud when trying to update apps and i don't know the password or security questions for the old email. I can sign in with my apple id which is tied to another email but not itunes how to fix

    I have an apple id and it has my current email attached to it. however when i go to update apps it's asking for the password for an old email. I no longer have the old email and can't use it. when I go to icloud on my ipad it asks for the password for old email. it doesn't allow me to change the old email to current. when i go to reset it i can't remember the password or security questions for the old email so it doesn't let me go any further. How do I fix this? Do i need to call apple support?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • I am having trouble answering my old security questions for my itunes account and it is creating a problem because I am not able to purchase apps/songs on my new IPAD. What phone number/email adress should I call to get a quick response to my issue?

    I have recently bought an IPAD 2 for my girlfriend and have encountered a problem with purchasing apps through my itunes account. It is requesting that I not only enter my pasword (which I know) but answer my old account questions, which I have forgotten the answers to. It had since locked me out of changing my questions for eight hours. Is there any number I can call to prove that I am the real owner of my itunes account so my girlfriend will be able to use her ipad to purchase new apps without having to go through the trouble of using one of my other apple devices? Random information: I believe my questions were set back in 2007 when I purchased my first ipod nano, since then I have used this same itunes account for my own ipod touch and ipad 2 and my girlfriends iphone 1st generation. I have never run into a problem regarding my questions before on any of these devices

    http://www.apple.com/support/itunes/contact/

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

  • Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.   When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and

    Please read my question carefully, this is, I think, a question for the experts. It's not the usual name change question.
    When I setup my new MacBook Pro, something slipped by me and my computer was named First-Lasts-MacBook-Pro (using my real first and last name).
    I changed the computer name in Preferences/Sharing to a new name and Preferences/Accounts to just be Mike. I can right click on my account name, choose advanced, and see that everything looks right.
    However, If I do a scan of my network with my iPhone using the free version of IP Scanner, it lists my computer as First-Lasts-MacBook-Pro! And it lists the user as First-Last.
    So even though another Mac just sees my new computer name, and my home folder is Mike, somewhere in the system the original setup with my full name is still stored. And it's available on a network scan. So my full name might show up at a coffee shop.
    Can I fully change the name without doing a complete re-install of Lion and all my apps?

    One thought... you said the iPhone displayed your computer's old name? I think that you must have used the iPhone with this computer before you changed the name. So no one else's iPhone should display your full name unless that iPhone had previously connected to your Mac. For example, I did this exact same change, and I use the Keynote Remote app to connect with my MacBook Pro. It would no longer link with my MacBook Pro under the old name, and I found that I had to unlink and then create a new link under the new name. So the answer to your question is, there is nothing you need to do on the Mac, but rather the phone, and no other phone will display your full name.

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    1)  Apple ID: All about Apple ID security questions
    Torrifromny wrote:
    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file ?
    2)  See Here.  Apple ID: Contacting Apple for help with Apple ID account security
    Ask to speak with the Account Security Team...
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • I can't reterive sequerity question for my apple id

    i can't reterive sequerity questions for my apple id
    <Email Edited by Host>

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (97539)

  • Can anyone help or answer this question for me. Is there a way to have a private album for pictures sent to my phone? Don't exactly want kids ( niece and nephew ) to play on my phone and see private pictures of my girlfriend

    Can anyone help or answer this question for me. Is there a way to have a private album for pictures sent to my phone? Don't exactly want kids ( niece and nephew ) to play on my phone and see private pictures of my girlfriend

    What about this?
    https://itunes.apple.com/ru/app/best-secret-folder/id488030828?l=en&mt=8

Maybe you are looking for

  • Can I be selective with count()?

    I need to count the number of rows in a table that have a char value set to "1" as opposed to "0". Here is my SQL now... select m.name "MODULE", count(b.bcr_number) "TOTAL" from bcrs b, lk_modules m, bcr_req_mgt rm where b.primary_module_id = m.id an

  • Dell 2650 / Solaris 10 Intel (should I open a bug)?

    Hi.. am just wondering about a Dell 2650 I have, running Solaris 10 11/04. The system is, as usual, equipped with dual Broadcom NetXTreme gigabit ethernet ports. I tweaked /etc/driver_aliases to recognize the onboard adapters and the "bge" driver lit

  • Physical standby in archive log mode

    HI , Our phyiscal standby database is running in archive log mode, 1.Is it manadatory to have it in archive log mode ? 2.As it is in archive log mode , does it produce any archivelog ?

  • Can I use imovie to download a video from youtube and then copy it to a dvd?

    I need to download a video from youtube for church on Sunday and wondered if I can do it using the imovie app? If not, does anyone know how to do this? Thanks!

  • Certain url's give 504 gateway timeout.

    A particular site our company regularly uses works fine on our old system but through BM3.9 I get 504 Gateway Errors. I have tried turning off all filters and access rules but it makes no difference. The URL is http://www.coins-global.com/ the site a