Regular Expression Search in Forms Builder

Hi everyone, can anyone help me out?
I'm working on a legacy forms migration project (3 to 10g) where item references often do not include the block name.
eg.
:stock_level := :default_level;
instead of
:stk.stock_level := :ctrl.default_level;
There are also instances of set_item_property('stock_level',....)
In complex multi-block forms this obviously makes the form difficult to understand.
Is there a way in which I can search the triggers and program units of a form for items that don't have a block prefix? The Forms search and replace function has a Regular Expression feature, but I have no experience in this area.
I assume I'm looking for something like this:- ":", followed by a character string that doesn't contain a "." or "="
Thanks

You might have a look at the commercial product formsAPIMaster, it has the ability to do such searches (and also automatic replacements, if needed)

Similar Messages

  • Dynamic form search in form builder

    Hello folks, I am relatively new to form builder, only a few months of experience, and here is the problem that I am having.
    I have this table, table1, with columns A,B,C,D..etc, I want to set up the search page in the following fashion:
    - One text field for every column of the table
    - The user can fill some of these text field, and leave others empty.
    - the form should only search for the columns in the text fields that are not empty, for example, if I leave the text field corresponding to A empty, then I can search for any value of A.
    - the result of the search is displayed in an LOV.
    I have read around and I found it to be something like that in the LOV query:
    SELECT *
    FROM table1
    WHERE
    (:block.A_text_field IS NULL OR table1.A = :block.A_text_field) and
    (:block.A_text_field IS NULL OR table1.A = :block.A_text_field) and etc for all columns...
    Or maybe this:
    SELECT *
    FROM table1
    WHERE (A = :block.A_text_field AND :block.A_text_field IS NOT NULL) OR
    (B = :block.B_text_field AND :block.B_text_field IS NOT NULL)OR etc for all columns....
    I haven't tested these two sample codes, because the server is closed currently, but would they work knowing my requirement? Would this query search for any value of B if the B_text_field was left empty? eg. user types 55 in A_text_field and leaves B_text_field empty; would it generate an LOV that shows A=55 and B any value?

    well to my mind this where clause
    (:block.A_text_field IS NULL OR table1.A = :block.A_text_field) and
    (:block.B_text_field IS NULL OR table1.B = :block.B_text_field) and [...]returns:
    if A_TEXT_FIELD is entered, then the column A column has to be exact the value of A_TEXT_FIELD (:block.A_TEXT_FIELD = table1.A) else if it there isn't any value entered there is no limitation for table1.A (:block.A_TEXT_FIELD is null with OR condition).
    When entering A_TEXT_FIELD and B_TEXT_FIELD, both limitations have to be fulfilled (if only B_TEXT_FIELD is entered just the B_TEXT_FIELD condition has to be fulfilled of course).
    When you don't enter any conditions in your textfields, you get all records from the table
    whereas the second construct won't return anything if you don't enter some data in your text fields.
    guess this:
    :block.a_text_field is null and :block.b_text_field is null, so this would be:
    (A = NULL and NULL IS NOT NULL) --this is false
    OR (B = NULL and NULL IS NOT NULL) -- this is also falseyou can simply check this by issuing the following query in SQL*Plus or something:
    CRONET@tcp_asterix_impl> select 1 from dual where 1 = null and null is not null;
    no rows selected
    CRONET@tcp_asterix_impl>So I believe the first condition does the thing you want.
    regards

  • Non-greedy regular expression search/replace

    i want to be able to do non-greedy regular expressions as
    dreamweaver defaults to greedy and eats all of the match it can
    match.
    Is there an add-on to add a checkbox or soemthing in the
    Search and Replace Dialog for non-greedyness?
    i guess i could throw something in there to match some simple
    expressions like...
    text to search n' replace:
    $Query .= ", dateReceived='".addslashes($dateReceived)."'" .
    ", dateReleased='".addslashes($dateReleased)."'";
    Instead of using this now
    Find: '"\.addslashes\(\$([^\)]*)\)\."'
    Replace: ". dateInsert($$1) ."
    i want to just use this wihout it getting greedy with the .*
    Find: '"\.addslashes\(\$(.*)\)\."'
    Replace: ". dateInsert($$1) ."

    In regular expression, if you want the .* to not be greedy
    you add a '?' after so yo you have '.*?'
    Find: '".addslashes($dateReleased)."'
    Hope that help,
    Chris
    Adobe Dreamweaver Engineering

  • Regular expression check in form

    Hi All,
    I am trying to plugin Regular expression check on the user form, for different fields. Can I do it in a java file and call this java class file in the validation part? if yes how can i do it if no what are the other alternatives?
    Thanks in advance

    I did the following using Xpress and a regular expression "if (/\D/.test(Val))" in JavaScript to check for non-numeric characters in a field.
              <Field name=':variables.approvalSAPID'>
                <Display class='Text'>
                  <Property name='title' value='SAP ID of Approving Manager'/>
                  <Property name='required'>
                    <Boolean>true</Boolean>
                  </Property>
                  <Property name='maxLength' value='8'/>
                  <Property name='size' value='8'/>
                  <Property name='help' value='SAP ID of the person who is being asked to approve request'/>
                </Display>
                <Validation>
                  <cond>
                    <and>
                      <eq>
                        <length>
                          <ref>:variables.approvalSAPID</ref>
                        </length>
                        <i>8</i>
                      </eq>
                      <script>
                          var Val = env.get(':variables.approvalSAPID');
                          testMe(Val);
                          function testMe (Val) {
                                                 if (/\D/.test(Val))
                                                    return (false);
                                                 else
                                                    return (true);
                        </script>
                    </and>
                    <null/>
                    <s>! The SAP ID of the Approving Manager must be an 8 digit number !</s>
                  </cond>
                </Validation>
              </Field>
    Larry L. Viars
    Sr. Systems Programmer
    Enterprise Systems Management
    CenterPoint Energy LLC.

  • Regular Expression Search for Case Statement in VBA

    Hi,
    I'm having trouble trying to use regular expressions in a case statement. I have a CSV spreadsheet of a server's netstat output and am trying to plot everything into Visio. I have been able to do that, however I'm not trying to expand this capability and
    resuse the same code for many different servers. 
    I have the mainServer variable set as a Variant and in my current example it is set as "INTPXY001" (internal proxy server 001). I have tried different regex statements for the potential to have INTPXY001 - INTPXY999, EXTPXY001 - EXTPXY999, and
    SVCPXY001 - SVCPXY999 in place of the Case "INTPXY001", but nothing I have tried seems to work.
    '========================================
    Set mainServer As Variant
    Set AppVisio = CreateObject("visio.application")
    AppVisio.Visible = True
    AppVisio.Documents.AddEx "", visMSDefault, 0
    AppVisio.Documents.OpenEx "server_u.vss", visOpenRO + visOpenDocked
    mainServer = ActiveSheet.Cells(1, 2) 'sets mainServer to INTPXY001
    With AppVisio.ActiveWindow.Page
    Select Case mainServer
    Case "INTPXY001"
    .Drop AppVisio.Documents.Item("SERVER_U.VSS").Masters.ItemU("Proxy server"), 2.25, 9.25
    Case Else
    .Drop AppVisio.Documents.Item("SERVER_U.VSS").Masters.Item(("Server"), 2.25, 9.25
    End Select
    End With
    '========================================

    You cannot declare variables As Variant in VBScript. All variables in VBScript are implicitly variants.
    If you are asking about VBA (Visual Basic for Applications), then you're not asking in the correct forum.
    -- Bill Stewart [Bill_Stewart]

  • Match pattern: change regular expression search via front panel?

    Hello,
    I have an application that I am developing which is making use of Serial VISA.
    I am scanning the output of a serial port which is constantly spitting out a long string of data. 
    Data is being pulled from the string with several combinations of SCAN FROM STRING functions and MATCH PATTERN Functions.
    Question:
    How can I use a button or TEXT box on the FRONT PANEL that can change the MATCH PATTERN Functions Regular expression?  
    for example the string may spit out the following:
     Weight\s\s\s\s\s\s\s\s\s\s\s\s-0.00\slb\s\s\s\s\s\s-16\sbits\s+74.40\s\B0F\sCorrected\s\s\s\s\s\s-0.00\slb\s+0.999987\s%\s\r
    in this case the serial device is spitting out data in LB.
    It could be possible for the device to spit out data in KG ... thus I need to change the REGULAR EXPRESSION.
    Thank you for your time

    Hi,
    just a quick example.
    there are other way of doing this but I think the ComboBox is quite an easy one.
    hope this helps
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    ComboBox.vi ‏12 KB

  • Feedback / Submit an idea don't Work (Page not found) || Multiline Regular Expression Search

    Hello,
    I reached for some months an idea with a (multiline edeting, regexp search).
    Nice to see this has already been integrated, making me but disappointing is the regex search, in combination with the Multiline Edeting.
    But what it brings me to use the regexp search, when I cant edit all hits.
    In this feature, I would like to point again.
    But unfortunately I cant find the feedback system, and here in the forum I always get the error message, page not found.
    Beautiful would be if both would be patched;)
    For me, the code is currently the "http://www.sublimetext.com/" editor of my choice if Adobe would therefore produce some its functions, edge code would be a real alternative.
    Yet I find Edge Code is not ready for Daily-use.
    Greetings
    Dirk Persky

    Hi Dirk,
    Thanks for reporting the broken links -- we'll look into that.  As Randy said, you're welcome to just post suggestions & issues here in the forum, though.
    Regarding multiline regexp search: that is possible in Edge Code, with some limitations:
    To search multiple files, use the Find in Files command, and then use any regexp containing "\n" -- it will match the newlines correctly.
    To search a single file, right-click the file and chose "Find In..." (it will behave like Find in Files, but limited to that one file)
    Caveat: you can't use the multiline $/^ anchors in your regexp
    Caveat: there's no workaround for using the Replace command with multiline regexps
    The latest Brackets release 0.41 fixes both the caveats listed above -- though you'll still have to use the "Find In..." workaround (or "Replace In..." for Replace).  We eventually plan to further improve this -- you can watch the full multiline search/replace item on our feature backlog for updates.
    Hope that helps,
    - Peter

  • What  is regular expression search function

    hi
    what is use CHARTOROWID ,COMPOSE fuction in oracle

    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions025.htm#SQLRF00615
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions032.htm#SQLRF00618

  • Regular expression on form value

    I have a form value that I need to add a regular expression to the end so I can pick up any characters after the form value.
    Example if someone enters Jones then I want to make sure the value could also search Jones Jr or Jones Sr.
    Basically add a space and any characters a-z to the form value.
    Here is my attempt but lost on regular expression part:
    REReplace ("form.myvalue","[[:space:]]","Not sure what the regular expression would be here?","ALL")

    This will replace "Jones Jr" and "Jones Sr" in the following text:
    "this is a test text Jones Jr and Jones Sr"
    ReReplaceNoCase("your_text_in_which_you_want_to_replace",
    "#form.myvalue#[[:space:]][a-z]*", "replacement_text", "ALL")
    Mack

  • Regular expressions: the shorter the string, the longer the time to analyse

    Hello there !
    I've got a problem with regular expressions...
    I analyse those two strings with the same regular expression, searching for the "message" word.
    The first of them, which is much longer than the other one, is instantly analysed... but the second one takes about to one second !
    Do you see the problem ? (I do not, as you can guess...).
    I tried to put the same special characters in the two ones... but it still works slowly for the second one.
    This is instantly analysed:
    "Coucou----- Origin.a.l. .message -----From: clems= To: Cl�ment S=ent: Wednes=day, April 30, 2003 1:38 PMSubject: Fw: mail de test----- Original Message -----From: clemsTo: Cl�ment Sent: Wednesday, April 30, 2003 1:37 PMSubject: mail de testcoucou, ceci est un mail de t.e.s.t... !!!Clems.".matches("((.*\\W)*\\Q" + "message" + "\\E(\\W.*)*)")
    This takes about to one second:
    "This is a b message ubodyub.brHere s a href= http:www.tano.fr.fm the second linea.".matches("((.*\\W)*\\Q" + crit�reActuel.getLeMot(i).toLowerCase() + "\\E(\\W.*)*)")
    Pleaaase, help ;)
    Clement

    Well in fact everything seems to work... there was another problem...
    My regular expression seems to be wrong and the code too...
    I apologize... sorry for the waste of time.
    See you later :) for my next wrong problem ! :))
    Clement

  • Indexing on regular expression seach for dynamic pattern

    Hello All,
    Would it be possible to create any index for regular expression search (REGEXP_LIKE) for 'dynamic' pattern?
    If the pattern is static, then we can create FBI, but is there any way for dynamic patterns? Please advise.
    Regards,
    Hari

    Thanks Dom, I have never used Oracle Text. Would it be possible to provide some sample code for above requirement.
    Regards,
    Hari

  • Regular Expression Character Occurance.

    Hello,
    I have a name textfield and I want certain characters like "-" to occur one time only.
    i.e. The textfield can accept "Jean Luc" or "Jean-Luc" (french name), but not "Jean--Luc" or "Jean------------Luc" right.
    The regular expression  /\-?/ looks correct but it does not seem to work.
    We use "\" because "-" is an escape character and the character "?" to make "-" occur 0  or 1 time only.

    I am making sure that the textfield accept only text like "Jean-Luc" and not "-----Jean--Luc".
    My regular expression is already very long so I will add 5 or more additional parameters in the if statement which will not be a problem.
    Below is a very common regular expression which looks simple but it will not accept "[email protected]" and non western characters.
    /^[a-zA-Z0-9._-]+@[a-zA-z0-9.-]+\.[a-zA-z]{2,4}$/
    Email regular expressions are complicated. The range of permissible email adresses and some domain sometimes include non western characters which is quite rare but certainly does exist. I guess there is no precise regular expression for user forms.
    Checking user input becomes more complicated if some bored to death folks have a habit of playing drums on keyboard which result to "asdf;lkjasdf;lkjasdf;lkajsdf;lkajsdf;lkajsdf;lkj".

  • Add regular expression to spotlite!

    hello!
    i don't really know where to put this request, so i just do it here:
    please add regular expression search to spotlite!
    would be really great and i think not that much of a work..

    And even more effective would be to do a bit of digging before making suggestions to Apple.
    For instance, a simple googling of "spotlight regex" immediately provides a suggestion or two. Checking Spotlight's query syntax might also lead in interesting directions. And, of course, Spotlight (which is a mighty <censored> excuse for a search engine anyway) is really mdfind, and we all know we can pipe mdfind results to grep, don't we?

  • How can we implement a regular expression in if condition?

    hi,
    could any body tell me how can we implement regular expression in if condition?
    if a page contains links with .html,.pdf,.img etc as href paths then i should only retrieve the links whose href path is .pdf .
    any idea
    thanks in advance

    Pasumarthi,
    Here is some VBA that should do the trick. This was created against the empirix homepage. www.empirix.com.
    Private Sub RSWVBAPage_afterPlay()
    Dim objReg As New RegExp
    Dim objMatch As Match
    Dim doc As String
    'Get the html
    RSWApp.GetHtml doc
    'set parameters for regular expression searching and matching
    With objReg
        'find all occurances
        .Global = True
        .IgnoreCase = True
        'regular expression pattern specified here
        .Pattern = "a href=(.+?)pdf"""
    End With
    'Loop through the matches and write them to the results log.
    For Each objMatch In objReg.execute(doc)
        RSWApp.WriteToLog objMatch.Value
    Next
    Set objReg = Nothing
    End Sub

  • How to build regular expression

    I am trying to build a regular expression that will search the following array of strings for the sequence 3.1
    Read Modem Information:
    Device Type .......................... 2
    Serial Number ........................ 11437
    Primary Phone Number ................. 1800...
    Secondary Phone Number ............... 1800...
    Modem Software ....................... BOOT.3.1 Jun 17 2004 17:02:26
    Bracelet Software .................... 4.0
    Validation Number .................... Default
    Login Name ........................... Default
    Login Password ....................... Default
    Case Number .......................... Default
    Primary Encryption Key ............... Default        
    Secondary Encryption Key ............. Default        
    Dialing Format ....................... True
    Call In Format ....................... True
    Modem Download Flag is Clear ......... True
    SCRAM Download Flag is Clear ......... True
    SCRAM Char Table Load Flag is Clear .. True
    Download Inhibit ..................... True
    Exiting Boot (8 sec) ................. Switching to operating memory.
    Main Revision ........................ SLCP.3.1 Jun 17 2004 17:02:46
    Reset ................................ Complete
    This is my first real foray into regular expressions and so I am lost trying to understand the help file.
    Thanks!
    Tay
    Message Edited by slipstick on 09-25-2008 09:34 AM

    I think the OP was puzzled about how to form a RE.
    For the specific case or how to find the exact string "3.1", and to not match anything else, the RE is "3\.1"
    Why?
    For the most part, a RE search string is an exact character match. However things change when certain "special characters" are included in the search string. The RE help message says what they are, but the descriptions can be a bit daunting at first.
    As a first example of special characters, the RE of "." (The single character fullstop) will match ANY single character. Thus a RE of "3.1" will match "3.1", "301", "3Z1", but not "31" or 3aa1".
    Another special character is "*". It modifies the match to allow zero or more of the preceeding bit. So "3.*1" matches "3", followed by any number of any character (including no characters), followed by "1". so it will match "31", "301", "3ABC51", "31111111"
    The action of a special character is cancelled by preceeding it with a backslash. So in the example above "3\.1" matches ONLY the string "3.1"
    The best way to discover exactly how RE's work is to try some out. Make a VI containing Match Pattern, and suitable controls and indicators. Work through the examples and see how they operate. Now try your own!

Maybe you are looking for