Need to remove Commas REgular Expressions?

How can I use java to remove commas from a number.
1,000 string
need it to be
1000
can I pass it through some sort of regular expression?

I was attempting to do it with regular expressions to learn how to do them better.
Thanks for your good comment.
nupevic

Similar Messages

  • Need help in unix regular expressions

    Hi All,
    I'm new to shell scripting. Please help me in achieving this
    I am trying to a find regular expression that need to pick a file with begin with the below format and mask variable is called in xml file.
    currently the script accepts:
    mask="CLIENT_ID+'_ADHSUITE_IN_'+date2str(now,'MMddyy','US/Eastern')+'.txt'"
    But it should accept in the below format
    2595_ADHSUITE_IN_ANNWEL_030309_2009-02-10_15-12-46-000_648.TXT715.outpgp_out
    where CLIENT_ID=2595. How to place wild card character '*' in the below to accept file in the above format. here is what i made changes.
    mask="CLIENT_ID+'_ADHSUITE_IN_'*+date2str(now,'MMddyy','US/Eastern')*+'.TXT'*+'.outpgp_out'"
    Please help.
    Thanks

    I believe your statement is being passed over twice:
    First Pass: (This is done by something like javascript)
    CLIENT_ID+'_ADHSUITE_IN_'+'.*'+date2str(now,'MMddyy','US/Eastern')+'.*'+'.TXT'+'.*'+'.outpgp_out'In this pass the variables and functions that are enclosed in literals are processed:
    (1) CLIENT_ID is replaced by 2595 or whatever is current value is:
    (2) date2str(now,'MMddyy','US/Eastern') gets replaced by 040609 (if the current time now is 4th april 2009).
    So at the end of this first pass we have a string:
    2595_ADHSUITE_IN_.\*040609.\*.TXT.*.outpgp_outThis string at the end of the first pass is a Posix basic regular expression. (ref: [http://en.wikipedia.org/wiki/Regular_expression] ) accessed at time of post).
    This is the string I put in the Regular Expression text box on [http://www.fileformat.info/tool/regex.htm]
    and it matches "2595_ADHSUITE_IN_ANNWEL_040609_2009-01-27_17-02-28-000_631.TXT715.outpgp_out" for me (though I prefer my egrep test).
    I hope this is somewhat clearer. Remember I have very little information about your system/application and I make big guesses.
    NB: (I should thank Frits earlier for pointing my sloppiness between wildcards (for eg unix shell filename expansion) and regular expressions).
    For the second pass this used to compared other strings to see

  • Need help in writing regular expressions involving \w

    Hi,
    Here is my requirement .
    I have a string : GTA - 12AB TRA - 12AB
    I need a regex that represent above string.
    GTA - Constant - This wont change
    12AB - This will be \w (alphanumeric)
    Here I cannot have TRA within this 4 characters.
    The question is :
    How can I write an expression which says it can be a word(the positions where I have 12AB in example) but not TRA in sequence.
    Is this doable?
    Thanks in advance.

    Use lookarounds: [http://www.regular-expressions.info/lookaround.html]
    The regex:
    (?!.?TRA).{4}matches any 4 characters (except line breaks) that does not contain 'TRA'.

  • HT1918 i left a job and had ipad with itunes, i need to remove my american express from my ipad

    also need to get rid of itunes for my iphone 5 as well

    What I would do if handing back those devices is:
    1. go into your iCloud account settings and disable find my iPhone.
    2. go into settings->general->reset->Erase all content and settings
    That will remove activation lock (1) so the next person who gets the device can activate it, and two, will delete all of your personal information, documents and data (basically renders the device back to the original pre-activation state it was in out of the box).

  • Need PL/SQL - Oracle Regular Expressions help

    Hi all,
    I have to create script some schema in oracle database to update our SVN. And after create DDL scrip need to do some modification (Ex: add columns). Example as follows,
    After create table DDL original scripts as follows,
    --table format 1
    CREATE TABLE "USER"."TABLE1"
            "COLUMN1"   NUMBER,
            "COLUMN2"   NUMBER,
            "COLUMN3"   NUMBER,
            "COLUMN4"   VARCHAR2(20 BYTE),
            PRIMARY KEY ("COLUMN1") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "T1" ENABLE
        PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
            INITIAL 35651584 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE1_COLUMN2" ON "USER"."TABLE1"
            "COLUMN2"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 196608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE1_COLUMN3" ON "SPIDERP4"."TABLE1"
            "COLUMN3"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 458752 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    --table format 2
    CREATE TABLE "USER"."TABLE2"
            "COLUMN1"  NUMBER,
            "COLUMN2"  NUMBER,
            "COLUMN3"  NUMBER,
            "COLUMN4"  VARCHAR2(20 BYTE)
        PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
            INITIAL 35651584 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE2_COLUMN1" ON "USER"."TABLE2"
            "COLUMN1"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 196608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE2_COLUMN2" ON "SPIDERP4"."TABLE2"
            "COLUMN2"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 458752 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    I need to include following amendment to above table scripts (expecting results),
    --1
    CREATE TABLE "USER"."TABLE1"
            "COLUMN1"   NUMBER,
            "COLUMN2"   NUMBER,
            "COLUMN3"   NUMBER,
            "COLUMN4"   VARCHAR2(20 BYTE),
            _*"COLUMN5"   NUMBER(3,0) DEFAULT 0,*_
            PRIMARY KEY ("COLUMN1") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "T1" ENABLE
        PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
            INITIAL 35651584 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE1_COLUMN2" ON "USER"."TABLE1"
            "COLUMN2"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 196608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE1_COLUMN3" ON "SPIDERP4"."TABLE1"
            "COLUMN3"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 458752 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    --2
    CREATE TABLE "USER"."TABLE2"
            "COLUMN1"  NUMBER,
            "COLUMN2"  NUMBER,
            "COLUMN3"  NUMBER,
            "COLUMN4"  VARCHAR2(20 BYTE),
            _*"COLUMN5"  NUMBER(3,0) DEFAULT 0*_
        PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
            INITIAL 35651584 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE2_COLUMN1" ON "USER"."TABLE2"
            "COLUMN1"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 196608 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    CREATE INDEX "USER"."TABLE2_COLUMN2" ON "SPIDERP4"."TABLE2"
            "COLUMN2"
        PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE
            INITIAL 458752 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT
        TABLESPACE "T1" ;
    /Note:
    I need solution apart from these conditions,
    1)Table cannot be modify before create DDL (DDL creating using this method “dbms_metadata.get_ddl” ).
    2)This is automated processes manual modification cannot be allow.
    3)We cannot hard-coded any Dynamic Values because above create DDL table just for explain my question.(**note : “PCTFREE” ,” PRIMARY KEY”, “),”.... above values can be hard-coded**)
    Thanks
    Tharindu Dhaneenja
    Edited by: Dhaneenja on Mar 14, 2011 11:16 PM
    Edited by: Dhaneenja on Mar 14, 2011 11:17 PM
    Edited by: BluShadow on 15-Mar-2011 09:08
    Added {noformat}{noformat} tags                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    not very safe code to do what you are looking for...
    =================test data========================
    SET ECHO ON FEED OFF LIN 2000 PAGES 9999  LONG 1000000 LONGC 1000 TRIMS ON;
    EXEC DBMS_METADATA.SET_TRANSFORM_PARAM( DBMS_METADATA.SESSION_TRANSFORM,'SQLTERMINATOR',TRUE);
    DROP USER u CASCADE;
    GRANT DBA TO u IDENTIFIED BY u;
    CREATE TABLE u.t1
       c1   NUMBER,
       c2   NUMBER,
       c3   NUMBER,
       c4   NUMBER,
       PRIMARY KEY (c1)
    CREATE TABLE u.t2
       c1   NUMBER,
       c2   NUMBER,
       c3   NUMBER,
       c4   NUMBER
    CREATE TABLE u.t3
       c1   NUMBER NOT NULL,
       c2   NUMBER,
       c3   NUMBER
    CREATE TABLE u.t4 (c1 NUMBER    REFERENCES u.t1);
    CREATE TABLE u.t5 (c1 NUMBER UNIQUE);
    CREATE TABLE u.t6 (c1 NUMBER CHECK (c1 > 0));
    CREATE TABLE u.t7 (c1 NUMBER NOT NULL);=================query========================
    SELECT CASE
              WHEN (SELECT COUNT (*)
                      FROM dba_tab_columns tc
                     WHERE tc.owner = o.owner AND tc.table_name = o.object_name) >
                      0
              THEN
                 SUBSTR (
                    DBMS_METADATA.get_ddl (object_type, object_name, owner),
                    1,
                    INSTR (
                       DBMS_METADATA.get_ddl (object_type, object_name, owner),
                       CHR (10),
                       1,
                       2
                       + (SELECT COUNT (*)
                            FROM dba_tab_columns tc
                           WHERE tc.owner = o.owner
                                 AND tc.table_name = o.object_name)))
                 || CASE
                       WHEN (SELECT COUNT (*)
                               FROM sys.obj$ so,
                                    sys.cdef$ scd,
                                    sys.con$ sc,
                                    sys.user$ su
                              WHERE     su.user# = so.owner#
                                    AND so.obj# = scd.obj#
                                    AND scd.con# = sc.con#
                                    AND so.obj# = scd.obj#
                                    AND scd.type# != 7
                                    AND so.name = o.object_name
                                    AND su.name = o.owner) = 0
                       THEN
                          ',column5 number(3,0) default 0'
                       ELSE
                          'column5 number(3,0) default 0,'
                    END
                 || SUBSTR (
                       DBMS_METADATA.get_ddl (object_type, object_name, owner),
                       INSTR (
                          DBMS_METADATA.get_ddl (object_type, object_name, owner),
                          CHR (10),
                          1,
                          2
                          + (SELECT COUNT (*)
                               FROM dba_tab_columns tc
                              WHERE tc.owner = o.owner
                                    AND tc.table_name = o.object_name)))
              ELSE
                 DBMS_METADATA.get_ddl (object_type, object_name, owner)
           END
              t
      FROM dba_objects o
    WHERE owner = 'U';=================output========================
      CREATE TABLE "U"."T1"
       (    "C1" NUMBER,
            "C2" NUMBER,
            "C3" NUMBER,
            "C4" NUMBER,
    column5 number(3,0) default 0,
             PRIMARY KEY ("C1")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      TABLESPACE "USERS"  ENABLE
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;
      CREATE UNIQUE INDEX "U"."SYS_C0025504" ON "U"."T1" ("C1")
      PCTFREE 10 INITRANS 2 MAXTRANS 255
      TABLESPACE "USERS" ;
      CREATE TABLE "U"."T3"
       (    "C1" NUMBER NOT NULL ENABLE,
            "C2" NUMBER,
            "C3" NUMBER
    ,column5 number(3,0) default 0
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;
      CREATE TABLE "U"."T4"
       (    "C1" NUMBER,
    column5 number(3,0) default 0,
             FOREIGN KEY ("C1")
              REFERENCES "U"."T1" ("C1") ENABLE
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;
      CREATE TABLE "U"."T2"
       (    "C1" NUMBER,
            "C2" NUMBER,
            "C3" NUMBER,
            "C4" NUMBER
    ,column5 number(3,0) default 0
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;
      CREATE TABLE "U"."T5"
       (    "C1" NUMBER,
    column5 number(3,0) default 0,
             UNIQUE ("C1")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255
      TABLESPACE "USERS"  ENABLE
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;
      CREATE UNIQUE INDEX "U"."SYS_C0025507" ON "U"."T5" ("C1")
      PCTFREE 10 INITRANS 2 MAXTRANS 255
      TABLESPACE "USERS" ;
      CREATE TABLE "U"."T6"
       (    "C1" NUMBER,
    column5 number(3,0) default 0,
             CHECK (c1 > 0) ENABLE
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;
      CREATE TABLE "U"."T7"
       (    "C1" NUMBER NOT NULL ENABLE
    ,column5 number(3,0) default 0
       ) SEGMENT CREATION DEFERRED
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      TABLESPACE "USERS" ;

  • Need help starting with regular expressions

    Hi,
    looked through the tutorials, and some stuff online and still having trouble.
    I've done a fair amount of modifying xml files with perl, and want to do the same thing with java.
    I'm writing this at work, and we don't have the 1.5 jdk installed, so I can't use the Pattern and Match objects.
    Here's some code I wrote:
    package pack1;
    import java.io.BufferedReader;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    public class PlantTest {
          * @param args
          * @throws Exception
         public static void main(String[] args) throws Exception {
              // get file to read from
              java.io.File infile = new java.io.File("plant.xml");
              FileReader infileReader = new FileReader(infile);
              BufferedReader bInfile = new BufferedReader(infileReader);
              //get basic file info
              System.out.println("does the file exist? " + infile.exists());
              System.out.println("file is located at: " + infile.getAbsolutePath());
              System.out.println("file was last modified: " + new java.util.Date(infile.lastModified()));
              // create a pattern
              String match = "<COMMON>";
              String line = bInfile.readLine();
              while (line != null){
                   //System.out.println(bInfile.readLine());
                   if (line.matches(match)){
                        System.out.println("match made: " + line);
              bInfile.close();
              infileReader.close();
    }I want the "match" object to be the equivalent of this in perl:
    (I realize I don't have the output set up in the code above, I was going to add it later, for now I just want to make the match and print something on the console)
         m/<COMMON>([^<]+)</COMMON>/i;
         $common = $1;
         print HTML "<p>Common Name: $common\n";here's a snippet of xml:
         <PLANT>
              <COMMON>Bloodroot</COMMON>
              <BOTANICAL>Sanguinaria canadensis</BOTANICAL>
              <ZONE>4</ZONE>
              <LIGHT>Mostly Shady</LIGHT>
              <PRICE>$2.44</PRICE>
              <AVAILABILITY>031599</AVAILABILITY>
         </PLANT>(I cribbed that xml from the w3c site)
    thanks in advance,
    bp
    Message was edited by:
    badperson

    ouch. 1.3.1...
    That's here at work, I'm kind of nervous about
    downloading another jdk, will there be a conflict?Google for Jakarta ORO regex. It is about the same speed as Java regex and works well with JDK1.3.1 .

  • Regular Expression Help

    I need help writting a regular expression that will match the following strings:
    1+1,1+(1+1),((1+1)+(1+1)),1+(1+(1+1)). Basically one that will match an arithmetic expression (operands limited to 1's and operators to '+' sign) with or without correctly matched parentheses. Have'nt had much luck so far. Any input will help. thanks

    okay, you asked for it:
    [1+()]+
    it will only match those string but it will tell you nothing about syntactically correct expressions. This is because these types of expression are not "regular" and cannot be properly parsed using regular expressions.

  • Regular Expression Question, Repetition Operators

    These are my success entries for a field;
    123456,
    123456,123456,
    123456,123456,123456,
    123456,123456,123456,123456,
    "," seperated 6 digits can be repeated unlimited times.
    I found on documentation this; "Repetition Operators; {m,}     Match at least m times" and for my need i tried this regular expression; "^[[[:digit:]]{6},]{1,}$", but didnt worked :(
    Any comments?
    Thank you very much :)
    Tonguc

    repeating exactly 6
    {6}
    repeating at least 1
    +
    repeating at least 6
    {6,}
    ok, your problem is [ instead of (                                                                                                                                                                                                                                                    

  • Regular Expressions In Dreamweaver

    Hi i am using Dreamweaver CS3, i am creating more than 100 HTML files every couple of days and need to use the regular Expressions Feature in the Find and Replace box but couldn't find or generate the expression i am looking For, i want to Replace every images name to be same as it's htm file name across all htm Files.
    Ex : cieg.htm
    <tr>
        <td colspan="2"><table id="Table_04" width="850" height="88" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="Viva/XXXthefilenameXXX_38.gif" width="213" height="88"></td>
              <td><img src="Viva/XXXthefilenameXXX_39.gif" width="212" height="88"></td>
              <td><img src="Viva/XXXthefilenameXXX_40.gif" width="213" height="88"></td>
              <td><img src="Viva/XXXthefilenameXXX_41.gif" width="212" height="88"></td>
            </tr>
          </table></td>
      </tr>
    and replace it to be:
    <tr>
        <td colspan="2"><table id="Table_04" width="850" height="88" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="Viva/cieg_38.gif" width="213" height="88"></td>
              <td><img src="Viva/cieg_39.gif" width="212" height="88"></td>
              <td><img src="Viva/cieg_40.gif" width="213" height="88"></td>
              <td><img src="Viva/cieg_41.gif" width="212" height="88"></td>
            </tr>
          </table></td>
      </tr>
    and same as another htm file named zsac.htm
    Any one knows a way to do it???
    Regards

    You will not see sql with asp when using view source and the
    like. The
    server executes the query and send the results. You need to
    have
    access to the source documents.

  • Regular Expressions Help in Dreamweaver

    Hi i am using Dreamweaver CS3, i am creating more than 100 HTML files every couple of days and need to use the regular Expressions Feature in the Find and Replace box but couldn't find or generate the expression i am looking For, i want to Replace every images name to be same as it's htm file name across all htm Files.
    Ex : cieg.htm
    <tr>
        <td colspan="2"><table id="Table_04" width="850" height="88" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="Viva/XXXthefilenameXXX_38.gif" width="213" height="88"></td>
              <td><img src="Viva/XXXthefilenameXXX_39.gif" width="212" height="88"></td>
              <td><img src="Viva/XXXthefilenameXXX_40.gif" width="213" height="88"></td>
              <td><img src="Viva/XXXthefilenameXXX_41.gif" width="212" height="88"></td>
            </tr>
          </table></td>
      </tr>
    and replace it to be:
    <tr>
        <td colspan="2"><table id="Table_04" width="850" height="88" border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td><img src="Viva/cieg_38.gif" width="213" height="88"></td>
              <td><img src="Viva/cieg_39.gif" width="212" height="88"></td>
              <td><img src="Viva/cieg_40.gif" width="213" height="88"></td>
              <td><img src="Viva/cieg_41.gif" width="212" height="88"></td>
            </tr>
          </table></td>
      </tr>
    and same as another htm file named zsac.htm
    Any one knows a way to do it???
    Regards

    Dreamweaver's Find and Replace can't use the filename automatically. You would need to do it separately for each page. However, the following regular expression should speed up the process on individual pages:
    Find in: Current Document
    Search: Source Code
    Find:
    (<img src="Viva/)[\w]+(\d{2}.gif")
    Replace
    $1cieg_$2
    In other words, you need to add "cieg" or the name of the file between $1 and _$2.
    [Edited by DP to correct error in first sentence. DW cannot use the filename automatically.]

  • How can I add Regular Expression verify?

    I need to write a Regular Expression for date whose format is 'yyyy-mm-dd'('2004-5-3' or '2004-05-03') and a Regular Expression for phone number whoes format is '12345678' or '1234567' or '13809441234'.
    Thanks for any help.

    The date format is a little tricky as there are many invalid combinations. You'd be better off calling TO_DATE with your user input and format mask. If an error is returned, the date is invalid.
    For the phone number assuming a valid phone number could be 7, 8, or 11 digits (it's a little difficult to tell what the format your suggest is) then you could apply something like the following:
    ^[0-9]{7}([0-9]|[0-9]{4})?$
    Regards.

  • Dashboard Prompt - Integer field (material number) - remove commas

    Hi all,
    We have a problem with one number field that added as a prompt in the dashboard. This is an integer field contains Material numbers shows commas and we need to remove commas. Problem is we cannot cast it because we need to keep it as ineteger field to sort the column. Please advise to correct this either repository area or in the dashboard prompt sql statment that applicable to an **integer** field to remove commas.
    Appreciate all your help!!
    Thanks,

    Thank You Svee. I have already tried override and treat number as number but that still showed the commas.
    What I was missing was clicking on save as the system-wide default. I never tried that before and this worked. I appreciate your help.

  • Track the entered answer using the Regular expression

    Hi,
    I am building a Q&A application which does have user to answer descriptive answer for the question(Text based answer rather than objective)
    in this case how we can track the entered answer by the user is the correct one? how we can capture the entered answer and then check with the correct
    answer in the DB? Yes we need to use a regular expression , but how we know that entered one is matching with the one in the DB
    as the user can answer in lengthy or short form ? Hence please clarify how we can proceed?
    Thanks.

    797836 wrote:
    Hi,
    I am building a Q&A application which does have user to answer descriptive answer for the question(Text based answer rather than objective)
    in this case how we can track the entered answer by the user is the correct one? how we can capture the entered answer and then check with the correct
    answer in the DB? Yes we need to use a regular expression , but how we know that entered one is matching with the one in the DB
    as the user can answer in lengthy or short form ? Hence please clarify how we can proceed?
    I don't see how regular expressions help at all with this problem ! What made you think they can help?

  • Regular expressions its URGENT !!!

    i have a long string of regular expressions seperated by "|" and i need to know which regular expression the particular string matched how can i find that and can i do it using java .util.regex
    thanks in advance

    Consider to use "capturing groups" or a better solution should be to split this long regular expression with alternations in small ones that will cause considerable reduction in backtracking. Also in this way will be easier to find what regular expression matches the target string.
    Regards.

  • "Multiple Line" Regular expressions in find/replace

    Hi there,
    I'm wondering if it is possible to find and replace (in batch
    mode) the following obstacle:
    say is have this piece of code in every html file i'd like to
    edit:
    <html>
    <blah blah (Same text in all files)>
    <blah blah (NOT same text in all files)>
    <blah blah (NOT same text in all files)>
    <code that is the same again in all files>
    and would like to replace it by nothing, effectively deleting
    the part completely... (by leaving the replace by field empty).
    The tricky part is that the lines which are NOT the same in
    all files, are sometimes 2 lines, but sometimes 3 or more lines.
    Somehow I need to get the regular expression to include
    <line>* (or something similar), in order to make the regular
    expression work.
    Any ideas on how to solve this? I must say untill now, the
    Dreamweaver search and replace function has been the most effective
    one, compared to many alternatives out there.
    Rp

    I've tried \1 and $1Just these in the text items of the find & replace dialog box...?????
    Can you write down exactly what have you tried....(text to be replaced by which....)????
    Greetings....
    Sim

Maybe you are looking for