Find/Change (Multiple Date Changes in one Find)

Hi ID geniuses, got a question for your gigantic brains.
This may or may not be an easy one...
I do a lot of production work and I'd like to create a Find/Change or even a GREP search that will allow me to change multiple blank dates at once).
the format changes from file to file and follows these 4 formats usually and all 4 formats could be used in one document.
XX/XX/XX (8 characters)
XX/XX/10 (8 characters)
XX/XX/2010 (10 characters)
9/26/10 - wrong date in place already. (6 – 8 characters depending on the month)
Instead of having 4 different searches, is it possible to do one search that look for any of these text formats and change them at once?
Any ideas/guidance will be appreciated.
Thanks for your time.

Piece of cake.
Of course GREP comes to the rescue. Enter this in your search field:
\b((XX|\d{1,2})/){2}(XX|\d{2,4})\b
and it'll find any of your examples. Wot Doth This All Mean?
\b     a Word break -- there must not be a word character before this entire expression. This means it'll ignore "XXX/XX/XX".
(     repeat group -- see below
( XX | \d{1,2} )     Either "XX" (exactly) or "a digit, 1 or 2". This means it'll ignore "XXX/XX/XX" (three exes), pick up "1/2/3" (one digit), ignore "123/123/123" (three digits)
/     A slash. Nothing special, except ...
)     .. since this is the end of the repeat group ...
{2}     ... we want twice the sequence "XX/" (or "digit/"), to match "XX/XX/" and every possible combo with digits as well.
(     oh yet another group. That's because ...
XX     .. this literal text ...
|     ... OR ... (hold on, I'm gettin' there)
\d{2,4}     .. two to four digits should be matched ..
)     .. in this entire group.
\b     Phew! A Word break to prevent it matching "12/34/56789"

Similar Messages

  • Space allocation on 11g R2 on multiple data files in one tablespace

    hello
    if the following is explained in Oracle 11g R2 documentation please send a pointer. I cant find it myself right now.
    my question is about space allocation (during inserts and during table data load) in one table space containing multiple data files.
    suppose i have Oracle 11g R2 database and I am using OMF and Oracle ASM on Oracle Linux 64-bit.
    I have one ASM disk group called ASMDATA with 50 ASM disks in it.
    I have one tablespace called APPL_DATA with 50 data files on it, each file = 20 GB (equal size), to contain one 1 TB table calll MY_FACT_TABLE.
    During Import Data Pump or during application doing SQL Inserts how will Oracle allocate space for the table?
    Will it fill up one data file completely and then start allocating from second file and so on, sequentially moving from file to file?
    And when all files are full, which file will it try to autoextend (if they all allow autoextend) ?
    Or will Oracle use some sort of proportional fill like MS SQL Server does i.e. allocate one extent from data file 1, next extent from data file 2,.... and then wrap around again? In other words it will keep all files equally allocated as much as possible so at any point in time they will have approximately the same amount of data in them (assuming same initial size ?
    Or some other way?
    thanks.

    On 10.2.0.4, regular data files, autoallocate, 8K blocks, I've noticed some unexpected things. I have an old, probably obsolete habit of making my datafiles 2G fixed, except for the last, which I make 200M autoextend max 2G. So what I see happening in normal operations is, the other files fill up in a round-robin fashion, then the last file starts to grow. So it is obvious to me at that time to extend the file to 2G, make it noautoexented, and add another file. My schemata tend to be in the 50G range, with 1 or 2 thousand tables. When I impdp, I notice it sorts them by size, importing the largest first. I never paid too much attention to the smaller tables, since LMT algorithms seem good enough to simply not worry about it.
    I just looked (with dbconsole tablespace map) at a much smaller schema I imported not long ago, where the biggest table was 20M in 36 extents, second was 8M in 23 extents, and so on, total around 200M. I had made 2 data files, the first 2G and the second 200M autoextend. Looking at the impdp log, I see it isn't real strong about sorting by size, especially under 5M. So where did the 20M table it imported first end up? At the end of the auotextend file, with lots of free space below a few tables there. The 2G file seems to have a couple thousand blocks used, then 8K blocks free, 5K blocks used, 56K blocks free, 19K blocks used, 148K free (with a few tables scattered in the middle of there), 4K blocks used, the rest free. Looking at an 8G similar schema, looks like the largest files got spread across the middle of the files, then the second largest next to it, and so forth, which is more what I expected.
    I'm still not going to worry about it. Data distribution within the tables is something that might be important, where blocks on the disk are, not so much. I think that's why the docs are kind of ambiguous about the algorithm, it can change, and isn't all that important, unless you run into bugs.

  • Multiple Data Sources In One Logical Table

    I am new to OBIEE and I have came accross an issue. I appologize if this information is in the forum somewhere but I have searched and cannot find it.
    My situation is that I would like to have one logical table that contains multiple data sources which have all the same columns. I already have session variables setup to differentiate the user's security through a row-wise variable for a specific column and a session variable for another column which determines the user's association to the data source in which they belong to. This security works well when the data sources are seperated in the Business Model and Mapping portion but the issue that arises is that the user's cannot share reports when the data sources are seperated in the BM&M.
    I have dragged and dropped a table from the Physical model to the BM&M, I then dragged the second data source (with same meta data structure) over to the "Sources" folder in the first data source table in the BM&M. On the Content tab or each data source table I have defined the WHERE clause as such, where VALUEOF(NQ_SESSION."SCHOOL") session variable is my row-wise column filter and the VALUEOF(NQ_SESSION."GROUP") filter is my data source determinative:
    sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.HOME_SCHOOL = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox."".SANDBOX.OBIEE_CROSS_ENROLLMENTS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    Unfortunatley this only returns values in the BI Answers for the first drag and drop Pysical table in the BM&M layer and not the second Physical table drug into the "Sources" folder. I have also tried to create a new logical table and drag both tables into the "Sources" folder to no avail. I have experimented with the Fragmentation content on the "Content" tab of the seperate logical tables, checking the "This source should be combined with other sources at this level", which gives me an error in BI Answers that a column does not exist which really does.
    What could I be missing? Advanced thanks to those who reply.
    Thank you,
    Kyle

    Stijn,
    Thank you for the article link. That was very helpful! It seems that I had a few things off as you do need the "This source should be combined with other sources at this level." checked. In my two table source columns for DATA_SOURCE I defined a literal ('086496' and '085597' for the other) in the Column Mapping tab. I pasted the following in the Fragmentation content, checking the "This source..." box on the Content tab:
    eSIS.SANDBOX4_SCHOOLS.DATA_SOURCE = '086496'
    And pasted the following into the WHERE clause, checking "Select distinct values" on the Content tab:
    sandbox4."".OBIEE.NWOCA_SCHOOLS.SCHOOL_CODE = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox4."".OBIEE.NWOCA_SCHOOLS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    This took care of my user's security, utilizing the session variables in the WHERE clause. I am now able to generate reports that only one user can access from one data source and share that same report with another user who can only see data from the other data source.
    Many thanks!!!

  • Multiple Data Columns in one report column

    How do I list multiple columns returned from a select vertically within one report column. For instance, I have three statuses for a project that I want to list, I'd like to list the three statuses within one status column. I remember seeing this somewhere but cannot find it now. Example:
    Status Column
    Budget: Green
    Schedule: Red
    Issues: Yellow

    additionally you could use HTML expressions. When editing your report, click on the column you want to use for displaying multiple data columns. This will take you to the report columns attributes page, there you can type in something like the following into the HTML expression field, referencing other report columns using #COLUMN_NAME# substitutions:
    #BUDGET#
    #SCHEDULE#
    #ISSUES#
    this is assuming your column aliases are named BUDGET, SCHEDULE and ISSUES. You can then just hide the columns that you don't want to see because the data is already shown using the HTML expression.
    Regards,
    Marc

  • PROBLEM  TRANSFERRING   MULTIPLE   DATA  ENTRIES    FOR  ONE KEY-FIELD.

    DEAR   EXPERTS ,
       I  HAVE  TRANSFERRED  DATA  FROM  THE  FINAL  INTERNAL  TABLE  OF  MY  ABAP REPORT (NOT ALV)  TO  CUSTOM  Z-TABLE  CREATED  IN  SE11.
    BUT  MY  PROBLEM  IS  :  I   COULD  NOT   TRANSFER  MULTIPLE   DATA  ENTRIES   FOR  A  PARTICULAR  FIELD.
    FOR  EXAMPLE :  IN  TABLE  EKKO  THERE  ARE   FOUR  EBELN-4900006375  AND  FOR  THAT  DIFFERENT  EBELP S  ARE
    PRESENT.  I  COULD  TRANSFER  ONLY  THE  FIRST  ENTRY ,  THAT  IS :  EBELN -  4900006375  AND   EBELP - 0010,
    AFTER  THAT  THE  ZTABLE  IS  NOT  GETTING  UPDATED  TO  EBELN-4900006375 FOR  EBELP - 0020  AND  SO ON.
    I  HAVE  TRIED  ALL  THE  '  MODIFY, INSERT,  UPDATE  '  STATEMENTS.  I  HAVE  USED  AT - USERCOMMAND - HIDE  AND  CHECKBOXES.
       PLEASE   SUGGEST   A   SAMPLE   CODE   FOR   THIS.
    Moderator message: please post again, but not in all upper case.
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    Edited by: Thomas Zloch on Jun 19, 2011 10:05 PM

    There are actually 5 queries in this report now. From what I understand about a union query, I don't think it will work here because the data being returned in each of the queries is so different. I basically need to know how to make all the criteria for each individual to be displayed before proceeding to the next data set, which will include the same data as the first, but for the next employee, and so on. I need to basically create a repeating frame with each individual's respective data I guess, but every time I do, it tells me that it's referencing an invalid group.

  • Getting multiple data readings at one time using LabVIEW (GPIB) with the Fluke Hydra 2620A

    I'm taking temperature readings with the 2620A using the NI LabVIEW drivers. Is there anyway to take an array of the data results? (i.e. more than one channel at a time)
    Thanks.

    This depends upon which VIs you are using. Are you using a driver specifically for the 2620A, the 488.2 VIs, or the VISA VIs? It also depends upon how the instrument returns data. You could use the array VIs in LabVIEW to parse the string and put it into an array, but first we'll need to know how it is sent back. For instance, it is long values separated by commas, etc. Let us know how the string is configured and we'll find a way to do it.
    J.R. Allen

  • Multiple data merges on one page

    I have created a postcard that I need to be sent out to clients. To save money, we have put three postcards on one 12 x 18 sheet of paper. I am trying to put three data merges on each sheet for customers addresses. Is this possible? I can provide an image if necessary.

    Hi ryaniscreative,
    This is absolutely possible, I do this often for variable data nametags on Avery labels. However, our printer should be able to automatically get this done for you if you are printing this digitally. Our Cannon printers have the capability position files (front and back) 2-up, 3-up, etc. I am sure this is the case for most digital printers on the market. Ask your printer and they should do this automatically, in which case you would build the file at full-size and Data Merge as normal.
    Never-the-less, here is how to do it manually:
    1. Create your 12" x 18" document in InDesign CC(2014).
    2. Drag your postcard art into the 12" x 18" document and create Crop Marks manually for this postcard template art.
    3. Position this postcard template art to the upper left corner of the document.
    4. Map all of your variables as normal to this one postcard template art on both pages to your .CSV file.
    5. In your Data Merge Palette, and in the Drop Down Menu in the Upper Right Corner, select Create Merged Document.
    6. Under the Records for Document Page section, select Multiple Records and then at the bottom of the dialog box select Preview Multiple Record Layout.
    7. Click on the Multiple Record Layout tab.
    8. Adjust the margins and column spacing in the dialog boxes according to your intent of positioning and the specs of the design.
    9. Hit OK to have InDesign begin creating a merged document out of all of your list variables.**
    **If you want to simply generate a PDF then in Step 5, instead of selecting Create Merged Document, hit Export to PDF.
    NOTE: This can only be done with a one-sided design. If you need to print graphics on the other side of the postcard (for mailing purposes of course) you will have to do this process again exactly the same way, in a separate InDesign document and then manually create new pages between the existing front side pages and paste in place, from one InDesign document to the other.

  • Querying multiple date ranges in one select

    Hello guys,
    DDL:
    CREATE TABLE DBO.SALES (
    TYPE VARCHAR(50)
    , REVENUE DECIMAL(19,2)
    , SALE_DATE_TIME DATETIME)
    What I'm trying to figure out is how I can pass two dates to a where clause querying this table, a start date and an end date. From this I can group up the REVENUE for each TYPE (but there's more):
    SELECT TYPE, COUNT(*) AS NBR_OF_SALES, SUM(REVENUE) AS TOTAL_REVENUE
    FROM REPORTS.DBO.SALES
    WHERE SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD
    GROUP BY TYPE
    I'd now like to add a couple of extra columns in the select that calculates the TOTAL_REVENUE equal to the time period of the two dates, but offset by 1 week, 1 month and 1 year, so that would be three columns. I'm guessing this would be possible with a
    CROSS APPLY, but I just can't get my head around it at this time. Just for clarity, the expected output would contain these columns:
    TYPE, NBR_OF_SALES, TOTAL_REVENUE, TOTAL_REVENUE_LAST_WEEK, TOTAL_REVENUE_LAST_MONTH, TOTAL_REVENUE_LAST_YEAR
    Any help is greatly appreciated.

    SELECT TYPE,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD THEN 1 ELSE 0 END) AS NBR_OF_SALES,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(WEEK,1,@STARTPERIOD) AND DATEADD(WEEK,1,@ENDPERIOD) THEN 1 ELSE 0 END) AS NBR_OF_SALES_WeekOffset,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(MONTH,1,@STARTPERIOD) AND DATEADD(MONTH,1,@ENDPERIOD) THEN 1 ELSE 0 END) AS NBR_OF_SALES_MonthOffset,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN @STARTPERIOD AND @ENDPERIOD THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(WEEK,1,@STARTPERIOD) AND DATEADD(WEEK,1,@ENDPERIOD) THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE_WeekOffset,
    SUM(CASE WHEN SALE_DATE_TIME BETWEEN DATEADD(MONTH,1,@STARTPERIOD) AND DATEADD(MONTH,1,@ENDPERIOD) THEN REVENUE ELSE 0 END) AS TOTAL_REVENUE_MonthOffset
    FROM REPORTS.DBO.SALES
    WHERE SALE_DATE_TIME BETWEEN @STARTPERIOD AND DATEADD(MONTH,1,@ENDPERIOD)
    GROUP BY TYPE
    Is this what you want?
    We have three total columns per metric, one for the period, one for the period offset by a week, and one for the period offset by a month.
    We've also adjusted the where so all the data for the offset period is included.

  • Multiple Date columns  in one fact table

    hi ,
    I have a fact which related to multi date, like bid date, win date, lost date ,etc...,
    I have create dimension like dim_bid_date, dim_win_date,
    but if I wan to create a report , the value sum by the month (2012.01-2012.08), I don't know how to do in one report which related multi date.
    I think I should have a 'common date', how to do, can anyone explain it in detail. thanks.

    2 thinks here, do you want to reports based on bid date,win date, lost date etc?
    if yes you need to create those many date logical tables and you need to have in Subject area (something like 'Agreement Details' subject area if you have OOB rpd)
    Coming to your report requirement 'sum by the month'; I dont think this is complete report requirement, you need to know month type like bid month or win month or lost month or what!!
    if user dont want do report by those mentioned dates then just use just date of type( bid,win etc) with out using day dim;
    you might have some date like created date, create report based on that for sum by the month.
    Hope this helps, if helps pls mark

  • Multiple dates connecting to one timedimension in SSAS

    Hi,
    I have Three dates in my FactSales - Deliverydate, shippingdate, shippingdateconformed - at the moment deliverydate is connected to the Time dimension. How do I connect the other two dates to the same Time dimension?

    Hi ,
    You can create One Time Dimension with following Keys ;
    Deliverydate Key , shippingdate Key, shippingdateconformed Key and Date Key and then in fact table create 3 relationdhip using Date Key .
    Deliverydate Key -> DateKEY
    shippingdate Key -> DateKEY
    shippingdateconformed Key -> DateKEY
    For Example :
    Relationship like ;
    If you  are talking about Role Playing Dimension .
    Kindly follow below link;
    http://www.mssqltips.com/sqlservertip/3117/defining-role-playing-dimensions-for-sql-server-analysis-services/
    Thanks
    Please Mark This As Answer or vote for Helpful Post if this helps you to solve your question/problem. http://techequation.com

  • Charts with Multiple Data Series in One Color

    I am trying to create a pie chart to reflect the different areas of my budget in four categories. However, my budget is divided into several smaller categories across several columns and I can only get the cells in the first column to register even though the additional cells show up in the Inspector as part of the series.

    Jerry,
    Thanks for the info. I'll give that a read when I get home today. In a roundabout way I tried part of that. I created my chart with my data for Mammallia and the time periods. Then I selected the occurrences for Synapsids and dropped them in, but it added them to the first data set in the chart? I'm guessing I was doing something wrong, but I'm unsure of what. Numbers/Excel has never been a strong subject for me, but I'll try your advice and see what I come up with.
    Reading your post again, the last way seems the most simple and I feel a little foolish for not thinking of that myself. Oh well, that's how we learn right? Thanks for your help!! You saved me a lot of hassle.
    Best regards,
    Mitch

  • Multiple data sources for one datagrid?

    Hello Everyone,
    I have a page that has a datagrid called dgMainGrid. I have
    it bound to an HTTPService and it updates fine. But I need to
    dynamically bind it to another HTTPService when the user clicks a
    button. How can I do that?
    Thanks,
    Anthony

    Come to think of it, is this even possible? How does a datagrid use its dataField parameter to lookup data? I am guessing data_array[row_index][col.dataField] would determine the value of a single cell at row_index and col. If so, my naive approach would require me to override the bracket operator so that the appropriate value is returned..
    e.g. when a simple array of objects is used, you have [{name:John, lastname:Smith}], datagridcolumns dataField is then set to "name". Now I will have two separate arrays:
    arr1: [{name:John, lastname:Smith}]
    arr2: [{name:Smith, lastname:John}]
    mergedarray will have a reference to both of them. Then when getKey("name", 1) is called, it will return a special key which can be used to access the name property from array 1, something like "name1". If I cannot override the bracket operator, mergedarray[0][name1] will return nothing.
    I remember reading somewhere that this kind of override is not possible. Any ideas?

  • Multiple Date Fields (Fact Table) - Linking with Time Dimension

    I have a fact table that has multiple date columns.
    I can make a time dimension, but it has to be joined to a particular date column. This becomes difficult because of the limit in having multiple date fields reference one time dimension. I can see possibly
    creating a date table which contains all dates, link to fact as well as time dimension table. I am trying to better visualize the table layout on this one. Or are there possibily better ways of looking at this senerio
    Any idea's

    Figured this one out; going to use one time dimension - what looking too much into the details in regard to this scenerio

  • CFTransaction & Multiple data sources

    We have the need to update to multiple data sources under
    CFTransaction. We have two MSSQL databases so I was able to create
    a view in one to the other and that works (unless someone knows of
    a problem that could cause). But we also have a MSAccess db that
    gets hit too under the same CFTransaction. CF does not allow you to
    have multiple data sources under one CFTransaction. If all the
    tranasction control is on the db side, why does CF care if there
    are different data sources?
    Thanks.

    As I said in my original post, in order for a transaction to
    span multiple databases, you need to do what's called "2-phase
    commit" or "distributed transactions". This is not a trivial thing
    to do, nor is it something that is often needed (especially in
    Coldfusion, which is 99% of the time talking to a single database).
    Why do you need to do 2-phase commit? and why isn't it
    trivial?
    "2PC is an acronym for 2 Phase Commit. This is a protocol by
    which data being committed to a database is committed in two
    phases. In the first phase, the transaction processor checks that
    all parts of the transaction can be committed. In the second phase,
    all parts of the transaction are committed. If any part of the
    transaction indicates in the first phase that it cannot be
    committed, the second phase does not occur. ODBC does not support
    two-phase commits."
    http://docs.openlinksw.com/virtuoso/twopcimplementation.html
    I don't think Access supports 2-phase commit. Access isn't
    really intended for the kinds of things that need 2-phase commit,
    which Microsoft readily admits (hence MS SQL Server).
    > My thought is that it is not allowed because CF only
    remembers one data source per cftransaction therefore can only send
    one commit or rollback instruction. If that's the case, it sounds
    like a simple enhancement.
    No, this isn't allowed because distributed transactions is a
    non-trivial thing. This isn't all handled on the database side, as
    you reference. If you're dealing with one datasource, yes, it does.
    Once you pull in a 2nd datasource, you need something that can talk
    to all databases involved (a transaction coordinator) and 1) check
    to make sure everything can be committed safely then 2) commit
    everything (hence 2-phase commit).
    Basically, you're trying to do something that's non-trivial,
    you don't understand why it's non-trivial, so you're getting
    frustrated. I realize you're not a Java shop. I was simply trying
    to explain to you why it was non-trivial, and a method to work
    around that if you so desire.

  • (Nokia E63) date changes automatically one or two ...

    Why the date of my phone (Nokia E63) changes automatically one or two days forward or backward at any unknown time (mainly after booting). I can find it after it boots and then rectify it manually again and again…  
    Thanks & Regards,
    Narottam
    India
    Narottam Das
    Kolkata, India

    I am having the same problem; I checked in the settings and made sure it says "off" under "network operator time", but the problem's still there.
    Any other ideas?

  • Lightroom is not saving metadata. I have done several things to save and I still get the tag that states is is not saved. I have also created 2 smart collections. One showing metadata has been changed and one showing metadata is not up to date. No matter

    Lightroom is not saving metadata. I have done several things to save and I still get the tag that states is is not saved. I have also created 2 smart collections. One showing metadata has been changed and one showing metadata is not up to date. No matter what I do it is not showing in LR that it is saved. I spent 2 days with Seth Resnick trying to correct this and we re created my catalog. It was ok, until I imported new images and same problem. Now I have a new problem, when I bring image to PS it saves it but does not bring back to LR. Am I the only one out there who has this problem?

    See:
    How to use multiple iPods, iPads, or iPhones with one computer
    What is the best way to manage multiple...: Apple Support Communities

Maybe you are looking for

  • Issues in exporting/importing repository fromInformatica version 8.6 to 9.1

    Hi There, I completed Informatica 9.1 hotfix2 server and client installation successfully in a seperate computer(system). Also configured repository and integration services in version 9.1. Now I need to export Informatica 8.6 repository and import i

  • Standard Texts using SO10

    Hi, I am using SO10 for Interview letters, Rejection letters..etc with Text ID 'PALT'. But when ever I try to create a new text in SO10 or even display and change,it opens with a DOC/RTF format rather than the normal SAP script editor. Due to this I

  • Question about personal smartphone activation

    if I own my phone will Verizon require a 2 year contract to activate? or can I get a shorter contract. I would like to use it seasonally (smartphone) for credit card processing

  • Help - SQL 2008 - SP4 Install Fails - Server is in script upgrade mode - Server Down

    Login failed for user 'CS\XXXXXXXXXXX'. Reason: Server is in script upgrade mode. Only administrator can connect at this time. [CLIENT: <local machine>] Clearing tempdb database. Bits: Windows 2003 Server Std SP2 SQL Server 2008 SP3 SQL Server has be

  • How do I create a white stroke?

    Hello I am trying to make a line with the pencil tool in Illustrator CS4 which I can use as a "white out" line to paint over black lines I dont want to see. I want a line which has a white stroke with a white fill - or no color at all, which will mak