OWA_PATTERN regular expressions CHANGE function

Hello,
I'm trying to use the CHANGE function to match an expression and then change the matched part of the string. The twist is that I would like to pass the matched part of the string through a function before it is replaced in the original string. Here is an example:
Pattern: 'C'
Text: 'CAAACAAAC'
Resulting text: 'DAAADAAAD'
Where the 'D' is the result of calling a function. The actual call to the OWA_PATTERN.CHANGE looks something like this:
OWA_PATTERN.CHANGE(mytext,'C',myfunction(&))
where the & argument to myfunction is as specified in the ORACLE docs as a reference to what was matched. The line of code doesn't work however. Anyone ever done anything like this?
Aziz 8)

SQL> CREATE OR REPLACE FUNCTION myfunction
  2    (p_pattern IN VARCHAR2)
  3    RETURN      VARCHAR2
  4  AS
  5  BEGIN
  6    RETURN CHR (ASCII (p_pattern) + 1);
  7  END myfunction;
  8  /
Function created.
SQL> CREATE OR REPLACE PROCEDURE test_pattern
  2    (pattern IN VARCHAR2,
  3     text    IN VARCHAR2)
  4  AS
  5    mytext      VARCHAR2 (256);
  6  BEGIN
  7    mytext := text;
  8    owa_pattern.change (mytext, pattern, myfunction (pattern), 'g');
  9    DBMS_OUTPUT.PUT_LINE ('Pattern:         ' || pattern);
10    DBMS_OUTPUT.PUT_LINE ('Text:            ' || text);
11    DBMS_OUTPUT.PUT_LINE ('Resulting text:  ' || mytext);
12  END test_pattern;
13  /
Procedure created.
SQL> SET SERVEROUTPUT ON
SQL> EXECUTE test_pattern ('C', 'CAAACAAAC')
Pattern:         C
Text:            CAAACAAAC
Resulting text:  DAAADAAAD
PL/SQL procedure successfully completed.

Similar Messages

  • Regular Expression / replace Function Help

    The problem:
    cfset myString = "i am a big boy"
    cfset outputString = replace("i am a big
    boy","i","you","all")
    Wrong Output:
    you am a byoug boy
    Intended Output
    you am a big boy
    How do I achive that output.

    Your first example had only one sentence. That's why I gave
    that answer.
    Anyway for your real question, you need to use regular
    expressions
    #rereplace(myString,"i\s","you ","all")# - will give u
    you am a big boy you am a big boy you am a big boy you am a
    big boy.
    \s looks for a whitespace character after the letter i. So
    that way it will not change the letter i in big

  • 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

  • Matches from regular expression into collection

    Hello,
    I need to do the following:
    I have a long string with some similar repeated data. I would like, using a regular expression, to extracts all matches in a collection. Is there a way of performing this task?
    I have look through the owa_pattern package, but as far as I found out, I can extract only a simple match. Here is an exact quote:
    "If multiple overlapping strings can match the regular expression, this function takes the longest match. " - http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/w_patt.htm
    So what can I do if I want to get all the matches?
    Thank you in anticipation. Any help would be appreciated.
    Best regards,
    beroetz

    I think your need a tokenizer-function.
    If the string +:in_str+ is delimited by +:in_delimiter+ you could try this:
    SELECT REGEXP_REPLACE(REGEXP_SUBSTR( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, LEVEL ), :in_delimiter, '') TOKEN
    BULK COLLECT INTO :my_nested_table
    FROM DUAL
    CONNECT BY REGEXP_INSTR( :in_str || :in_delimiter, '(.*?)' || :in_delimiter, 1, LEVEL ) > 0
    ORDER BY LEVEL ASC;
    I wrote a string-to-textarray-tokenizer (and it's pendant) some times ago, being able to cut from certain positions within the string using regular expressions and return the elements into an nested table of varchar2. It looks like:
    TYPE pos_arraytype IS TABLE OF POSITIVE ;
    TYPE text_arraytype IS TABLE OF VARCHAR2(2000);
    FUNCTION stringToTextarray(in_str IN VARCHAR2, in_pos_arr IN pos_arraytype, in_regexp_arr IN text_arraytype DEFAULT NULL, in_trim_strings IN BOOLEAN DEFAULT TRUE)
    RETURN text_arraytype ;
    in_str is the string to be tokenized
    in_pos_arr is a table of positive values of positions in the string to be cut
    in_regexp_arr is a table of regular expressions to use at each position declared by in_pos_arr
    in_trim_strings is a flag, if the cutted element should be trimmed
    using above for example:
    in_str = 'Markus van Muster 347651234XY Musterdaam ABCDE'
    in_pos_arr = (1, 13, 35, 35, 42)
    in_regexp_arr = ('(.?){12}', '([^[:digit:]]?){22}', '[[:digit:]]{4}', '[[:alpha:]]{2}', '(.?){14}')
    in_trim_strings = TRUE
    RETURN collection ('Markus','van Muster','1234','XY','Musterdaam')
    If you need the code, then tell me! I'm looking for....
    Cheers,
    Martin
    Edited by: Nuerni on 17.10.2008 08:49

  • Regular Expressions - unsetting greedy possible?

    Hi,
    I'm currently working on a parser and got some problems with the regular expressions in ABAP.
    Lets say I want to calculate (22)*(33).
    The RegExp \(.+\) finds everything between brackets - the problem is, that the engine finds everything between the first opening and the last closing bracket (actually it should find the first opening and the first closing bracket).
    Is there a way to tell the engine to work ungreedy?
    Thanks for your help
    Chris

    Hi Prashant,
    unfortunately this won't work either.
    I'd better give some more information on the topic to increase understanding.
    In order to calculate this string mathmatically I created a function working recursively. It calculates the (math)value of a string.
    So lets say we want to calculate (22)*(33), the function is supposed to work this way:
    math ( "(22)*(33)")
    -> math ("2+2") (Calculating and returning value: 4)
    The formula now is "4*(3+3)"
    -> math("3+3") (Calculating and returning value: 6)
    The formula now is "4*6"
    -> math("4*6") (calculating and returning value 24)
    Thus ABAP does not know ungreedy searches in regular expressions, the function would work this way:
    math ( "(22)*(33)")
    ->math( "22)*(33" ) (using the wrong brackets...)
    ... leading to a math error.
    Your solution, Prashant, would work for the first recursive call. Then, the formula would be "(22)*(32)" again.
    Thanks though
    Regards
    Christian

  • Regular Expressions with Call Policy on VCSe

    Hi Guys,
      I am working on firming up the call policy on my VCS Expressway to try to better intercept the SIP spam requests it is getting from internet ip numbers. Right now those spam requets are getting rejected by the loop detection but I want to intercept them before they even do a search on the Expressway. It seems that the call policy rules I create without regular expressions are functioning fine but I don't think I have the syntax correct for the regular expressions.
    The goal of this rule is to reject any incoming SIP request that has a destination alias format of 7 to 17 digits followed by an @VCSe_IP. so for example it would reject the following attempts: 0123456@VCSe_IP and 0123456789101112@VCSe_IP with one rule.
    The policy I created is this: source pattern: unauthenticated user, Destination pattern: \d{7,17}@xx\.xx\.xx\.xx (where xx is the individual octets of the VCSe IP address), Action: reject  
    However the above policy does not seem to be rejecting the calls before they do a search. I have checked the above expression with the check pattern tool on the VCSe and it comes up with a sucessful match when I try the destination alias of a request that made it through, hence my confusion. Any help you guys could provide would be appreciated.
    Thanks,
    Steven                

    Steven,
    Default Zone access rules do not relate to this at all and you can keep those set to 'No'.
    How exactly are you placing the test calls when attempting to verify this?
    I created the following CPL rule on my X7 VCS (With 10.10.10.10 being the IP address of my VCS):
    Source pattern:
    Destination pattern: \d{7,17}@10\.10\.10\.10
    Action: Reject
    I then proceeded with placing a SIP call from an unregistered C20, calling the URI '[email protected]' while running a diagnostics log on my VCS with Network log level set to 'DEBUG', and captured the following in that log:
    Incoming INVITE:
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,598" Module="network.sip" Level="INFO":  Src-ip="10.x.x.x"  Src-port="5060"   Detail="Receive Request Method=INVITE, Request-URI=sip:[email protected], Call-ID=9dd19ad75b1063ecf716461b149e9e2a"
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,598" Module="network.sip" Level="DEBUG":  Src-ip="10.x.x.x"  Src-port="5060"
    SIPMSG:
    |INVITE sip:[email protected] SIP/2.0
    Call processing logic, showing CPL matching:
    2013-02-22T16:03:36+01:00 vcs02 tvcs: Event="Search Attempted" Service="SIP" Src-alias-type="SIP" Src-alias="10.x.x.x" Dst-alias-type="SIP" Dst-alias="sip:[email protected]" Call-serial-number="0886391c-7d01-11e2-adf5-0050569a08fd" Tag="08863aac-7d01-11e2-bd2e-0050569a08fd" Detail="searchtype:INVITE" Level="1" UTCTime="2013-02-22 15:03:36,601"
    2013-02-22T16:03:36+01:00 vcs02 tvcs: Event="Call Attempted" Service="SIP" Src-ip="10.x.x.x" Src-port="5060" Src-alias-type="SIP" Src-alias="sip:10.x.x.x" Dst-alias-type="SIP" Dst-alias="sip:[email protected]" Call-serial-number="0886391c-7d01-11e2-adf5-0050569a08fd" Tag="08863aac-7d01-11e2-bd2e-0050569a08fd" Protocol="UDP" Auth="NO" Level="1" UTCTime="2013-02-22 15:03:36,601"
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,602" Module="network.cpl" Level="DEBUG":  Remote-ip="10.x.x.x"  Remote-port="5060"   Detail="CPL: "
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,602" Module="network.cpl" Level="DEBUG":  Remote-ip="10.x.x.x"  Remote-port="5060"   Detail="CPL:   "
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,602" Module="network.cpl" Level="DEBUG":  Remote-ip="10.x.x.x"  Remote-port="5060"   Detail="CPL: matched "
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,602" Module="network.cpl" Level="DEBUG":  Remote-ip="10.x.x.x"  Remote-port="5060"   Detail="CPL: "
    VCS responds to INVITE with 403 Forbidden:
    2013-02-22T16:03:36+01:00 vcs02 tvcs: UTCTime="2013-02-22 15:03:36,616" Module="network.sip" Level="DEBUG":  Dst-ip="10.x.x.x"  Dst-port="5060"
    SIPMSG:
    |SIP/2.0 403 Forbidden
    As you can see, on my VCS everything seems to work as expected. I'd recommend you capture a similar diagnostics log on your own VCS to check what is different in your test call compared to the output above.

  • Regular Expression/Replace - Oracle 7.3

    Hi!
    I am trying the regular expression SQL functions of 10g to Oracle 7.3 and it seems the older version does not cover this feature yet.
    "Aaaa,Bbbb" --> "Aaaa, Bbbb"
    REPLACE *",[0-9A-Za-z]"* WITH *", "*
    The string pattern is to look for comma-punctuations that is not followed immediately by whitespacess so I can replace this with a comma followed by a whitespace.
    Any workaround for this?

    Hi,
    Welcome to the forum!
    kitsune wrote:
    Hi!
    I am trying the regular expression SQL functions of 10g to Oracle 7.3 and it seems the older version does not cover this feature yet.You're right; regular expressions only work in Oracle 10.1 and higher.
    >
    >
    "Aaaa,Bbbb" --> "Aaaa, Bbbb"
    REPLACE *",[0-9A-Za-z]"* WITH *", "*
    The string pattern is to look for comma-punctuations that is not followed immediately by whitespacess so I can replace this with a comma followed by a whitespace.
    Any workaround for this?You're best bet in Oracle 7.3 would be a user-defined function. That's a very old version; don't expect much.
    Do you know anything else about the string? For example, is there some character (say ~) that never occurs in the string? Will there ever be two (or more) whitespace characters after punctuation? What characters do you consider to be whitespace? Which are punctuation? Depending on the answers, you might be able to do something with nested REPLACE and/or TRANSLATE functions.

  • 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

  • Functionality equivalent to Regular Expressions

    Hi,
    We have a old, very badly designed database(which by the way is the culprit of all the problems).
    There is a varchar2 column with values like -
    C500
    500FCG
    50-100
    MX
    ADW
    Y
    10-5
    500
    B1
    C500
    I am trying to retrieve only digits with no leading or trailing alphabets. But i still want numbers like 50-100.
    I know in 10g this could be easily done with regular expressions. But we are still using oracle 9i.
    Is it possible within the sql statement or is there any other way to do it(like using some perl programs calling from plsql).
    Any suggestions greatly appreciated.
    Thanks,
    Siri

    Sorry Mohana for not explaining my req clearly.
    Actually i was able to get the results by changing your query a little.
    Here is the query -
    select NVL(replace(translate(cov_limit, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ','*'),' '), cov_limit) as After, cov_limit as Before
    from test;
    SQL> /
    BEFORE
    C500
    500FCG
    50-100
    MX
    ADW
    Y
    10-5
    500
    B1
    C500
    1000
    AMD
    CAD
    MAD
    WAT
    FCG
    CG
    AD
    DW
    A
    A500
    AFTER
    500
    500
    50-100
    MX
    Y
    10-5
    500
    1
    500
    1000
    FCG
    CG
    DW
    *500
    Only thing i am not able to understand is why the alphabet 'A' is not getting replaced with blank.
    Thanks & Regards,
    Sree

  • VISA Find resource function regular expression

    Hi guys,
    I've been trying to get which Serial port is a GPS receiver connected to using the VISA Find Resource Function with no luck. The idea is to use a regular expression similar to
    ASRL?*INSTR{VI_ATTR_ASRL_BAUD == 9600}
    but instead of looking for baud rate, I want to search the value
    ASRL3 (COM3 - GNSS Receiver)
    as seen in MAX/VISA Test Panel. The attribute name is VI_ATTR_INTF_INST_NAME.
    Something like ASRL?*INSTR{VI_ATTR_INTF_INST_NAME == ASRL? (COM? - GNSS Receiver)} should work, but it's not.
    How should I write the expression?
    Thanks!
    Best regards,
    Néstor
    LabVIEW 2011 + Windows 7 32bits SP1

    Hi Dennis,
    thanks for answering.
    I haven't assigned the name, MAX did it. I just opened MAX and there it was, COM3 (In Devices and interfaces/ASRL3/settings/name). I suppose it gets directly the Windows serial port name, what name do you mean exactly?
    Anyway, what I'm interested in getting is the Port description, that would tell me the connected device in that port. I could build a small loop and look for the interface description of each serial device, but I found the VISA Find Resourde function and it seems a more simple and direct way to get what I want.
    If I can list all serial devices with 9600 baud rate as in the previous example, why not do the same with the instrument name? I clearly see it when I open the VISA Test Panel. I am maybe missing something?
    Best regards,
    Néstor
    LabVIEW 2011 + Windows 7 32bits SP1

  • Unable To Use Regular Expression To Find Function Names

    Hi,
    I am trying to create a regular expression to find function and procedure names without the static designation and the parameter list.  Sample source document:
    static function test
    static function test(i,j)
    function test
    function test(i,j)
    static procedure test
    static procedure test(i,j)
    procedure test
    procedure test(i,j)
    For each of the above samples, I would like only the word "test" to be found.
    Thanks

    I suggest starting with this expression:
    ^\s*(static\s+)?(function|procedure)\s+(?<NAME>\w+)
    Programmatically, the name can be extracted from the group called “NAME”.
    The expression can be improved.

  • Regular expression to change erroneous JSTL information fails

    // THIS IS WHAT TO LOOK FOR: <c:param name="[name]" value="<%= [value] %>" />
      if (stuff.indexOf(".com/jstl") >= 0) {
       stuff = stuff.replaceAll(".com/jstl", ".com/jsp/jstl");
      Matcher matcher = Pattern.compile("(<c:param[ \\t]+name=\"[^\"]+\"[ \\t]+value=\")<%=([^%=\"]+)%>(\".*$)").matcher(stuff);
      if (matcher.matches()) {
        matcher.replaceAll("$1\${$2}$3");
      }What I am trying to do is very simple but brain-numbing for the past few days. I found out that about 100 different JSP scripts have the wrong information:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <c:import name="header.jsp" context="/globals" >
       <c:param name="path" value="<%= path %>" />
    </c:import>What I am supposed to apparently have is this:
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <c:import name="header.jsp" context="/globals" >
      <c:param name="path value="${path}" />
    </c:import>
    {code}
    But changing 100 scripts manually is extremely hard especially when you don't know where they are among the 250 other scripts within the entire portal.  Thus, I wrote a Java class I can run from the command-line to do this for me, however, the regular expression pattern I selected to make the change constantly fails.
    I can't seem to figure out why it fails as I've tested using various online regular expression testers and it's the most accurate assuming Java uses POSIX. 
    Help very much appreciated, thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Phil_The_Lifeless_Programmer wrote:
    I don't see how you proposed that solution, unless you proposed it in a way that I could not understand, it sounded as if you were trying to point out flaws w/o a solution.I pointed out the flaws along a solution. You specified only one backslash in the replacement pattern. A backslash is an escape character in String. You need to add one more backslash to represent an actual backslash. You are invoking Matcher#replaceAll() without doing anything with its result and expected that changes are reflected in 'stuff'. I pointed that out too, along with the recommendation that you need to assign and use its return value.
    It might be my English or your stressfull head that you misunderstood it. But don't complain that I didn't give the solution. Or do you only qualify complete code snippets as a solution?
    I forgot to also mention that you have to run the Java class program multiple times manually in spite of the while loop. It appears to only replace the very last instance of the pattern in the file and nothing else. If you manually run it multiple times only then does it replace each line, from last to first.Your regex might just be wrong, it look like that it only matches the first occurrence. I am not an advanced regex expert, so I can't say much about this. Consider reposting this question (in a more friendly form!) in the Java Programming forum. There walk a lot of regex guru's around, e.g. uncle_alice, sabre150 and prometheuzz.
    Good luck, man. And please take a breathe.

  • Regular expression to change Hour:Min:Sec time to Min:Sec using the Search and Replace tool

    Hi,
    I think the title says it all, but I've used a script to export a project from an NLE as a html file with a bunch of images and timecodes within table cells. For example, In=00:00:34 and Out=00:01:30 needs to be converted In=0:34 and Out=1:30. I think the Search and Replace is the most simple way of working that, but I've not experience with Regular Expressions (or much in that regard) so would really appreciate if someone could give me a hand writing the Regular Expression I need to achieve this.
    Thanks in advance,
    James

    Okay, so an example row is:
    <tr>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event Start [00-01-22-19].jpg"><br>
    <strong>In: </strong>1:22<br>
    <br>
    </p></td>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event End [00-01-24-25].jpg"><br>
    <strong>Out: </strong>1:24<br>
    </p></td>
    <td width="100%" align="left" valign="top"><p><strong>Cut to League Video</strong></p>
      <p><strong>Duration</strong>: 2<br>
      <strong></strong></p></td>
    </tr>
    I need to change it to:
    <tr>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event Start [00-01-22-19].jpg"><br>
    <strong>In: </strong>1:22 seconds<br>
    <br>
    </p></td>
    <td align="left" valign="top"><p align="left"><img src="Snapshot At Event End [00-01-24-25].jpg"><br>
    <strong>Out: </strong>1:24 seconds<br>
    </p></td>
    <td width="100%" align="left" valign="top"><p><strong>Cut to League Video</strong></p>
      <p><strong>Duration:</strong> 2 seconds<br>
      <strong></strong></p></td>
    </tr>
    The script itself is something I found somewhere on the internet - it's for Sony Vegas.
    I've highlighted the changes with bold underlined italics.
    Thanks for you help, guys,
    James

  • Regular Expression functions not supported in Interactive report filters ??

    I'm using APEX 4.0.2 and I'm trying to create a row filter in an interactive report which uses regexp_instr and regexp_replace functions and I'm getting the message:
    Invalid filter expression. regexp_instr
    The code runs fine in SQL Workshop
    select cytogenetics from z_patient
    where regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    CYTOGENETICS
    "46,XX [20]"
    "46,XY[20]"
    "46,XX"
    "46,XY[20]"
    "46,XY[30]"
    "46,XY[26]"
    "46,XY [33]"
    "46,XX[32]
    etc...
    my filter is just the where clause above i.e.
    regexp_instr(regexp_replace(cytogenetics,'(\,+|\"+|\s)',''),'(^46XX$|^46XY$|^46XX\[..\]$|^46XY\[..\]$)')=1
    *Are regular expression functions just not supported in interactive report filters?*
    thanks in advance
    Paul P

    Hi Paul,
    regular expression functions are supported in interactive report filters, but it looks like that REGEXP_INSTR hasn't been added as valid command. Only REGEXP_SUBSTR and REGEXP_REPLACE are valid commands for computation expressions and REGEXP_SUBSTR, REGEXP_REPLACE and REGEXP_LIKE for row level filters.
    I have filed bug# 12926266 to fix this issue. Sorry for the inconvenience.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Regular Expression for Match Pattern (string) Function

    I need to find a variable length string enclosed by brackets and
    within a string. Can't seem to get the regular expression right for
    the Match Pattern function. I'm able to get the job done using the
    Token function, but it's not as slick or tight as I'd like. Does
    anybody out there have the expression for this?

    Jean-Pierre Drolet wrote in message news:<[email protected]>...
    > The regular expression is "\[[~\]]*\]" which means:
    > look for a bracket "\[" (\ is the escape char)
    > followed by a string not containing a closing bracket "[~\]]*"
    > followed by a closing bracket "\]". The match string include the
    > brackets
    >
    > You can also read "Scan from String" with the following format:
    > "%[^\[]\[%[^\[\]]" and read the 2nd output. The brackets are removed
    > from the scanned string.
    Thanks, Jean_Pierre
    I did some more experimenting after posting and found that \[.*\] also
    works with the match pattern function. Thanks for your input.
    sm

Maybe you are looking for

  • Iphoto restored but problems

    My Mac crashed 2 weeks ago and restoring iPhoto has been a nightmare.  All of my "events" are gone, I have duplicates, triplicates, etc.  My photos have jibberish under them like "hyvSMkMfS2mpzg1LnmCDsA".  I have over 20,000 photos and have most back

  • Is reading local file possible?

    Hi, My intention is to use Flash 8 Pro as a tool allowing to upload large files into the server (something like FTP client). Unfortunately a lot of servers have tight restrictions for transmition time (sometimes limited to 30s). Work around to this c

  • Nach Update startet Logic nicht mehr: HILFE

    Moin, nach einem interessant klingendem Apple Update (Mavericks) startet mein vorher funktionfähiges Logic Pro 9.0.0 nicht mehr! Auf dem Icon ist ein im Kreis durchgezogener Strich (als wäre das Programm gelöscht oder so) Klicke ich drauf kommt: Ich

  • Top-bar menus modification ?

    Hello ! I couldn't find where I can modify the top bar menus Data, Edit, Tile Set etc... in Mobile Application Studio (MAS), Mobile System Management (msy) or Mobile Application Management Tool (AMT), where is it possible ? I have a request to modify

  • Can LR show custom camera profiles

    Can LR represent the user defined picture styles? Canon 7D user def 1 user def 2 user def 3