Replace Pattern

I have a few photos of some models dressing in solid color outfits. I would like to add patterns in place of the solid colors. Is there a quick method or auto action, that allows you to do this?
If so, what version of Photoshop?
Thanks

Hi Keith
I've never attempted to do what you want before, but I would start by making a mask of the dress and then make a displacement map which I could use on the new pattern that you want to apply. I guess you could action some of the steps.
No quick method that I can think of.

Similar Messages

  • Variable in regex replace pattern

    Hi,
    I need to use a variable in a regex replace pattern - how can I do it? Specifically, I need to pass arguments to a shell script that then uses that argument in a replace pattern:
    #!/bin/bash
    #$1 now holds the argument
    sed 's/searchpattern/replace_pattern_with_variable$1/g' file1 > file2
    when I run this, the replace pattern uses $1 as a literal string "$1" and not the variable value. How can I change this?
    Thanks!
    Ingo

    Hi Ingo,
       As Vid points out, the issue is that single quotes protect strings from shell interpretation. You need to have the dollar sign, '$', visible to the shell or it won't read what follows as a variable name. Using double quotes works because the shell "reads through" those.
       However, complex regular expressions can contain lots of characters that the shell interprets. These can be quoted individually by backslashes but the use of backslashes in regular expressions is complex enough without the addition of shell interpretation. I find it easiest to keep the single quotes and only expose the part of the string that the shell needs to interpret.
       The shell doesn't have a special string concatenation character. All you have to do is to put the strings beside each other with nothing in between and the shell will concatenate them. Therefore it's possible to write your example as:
    sed 's/searchpattern/replace_pattern_with_variable'${1}'/g' file1 > file2
    That is, one closes the single quote right before the variable and then resumes it immediately afterward. The shell will put these quoted strings together with the contents of the variable just as it would with double quotes but you still enjoy the protection of single quotes around the rest of the string!
    Gary
    ~~~~
       P.S. Perl's master plan (or what passes for one) is to take
       over the world like English did. Er, as English did...
          -- Larry Wall in <[email protected]>

  • Java.util.regex and replacing patterns with function calls

    Hi everyone,
    I'm in terrible need for help.
    Any advice is much appreciated.
    I have the following sentence in a file. The sequence of numbers is actually a
    date in seconds since 1970. I need to identify the 9 or 10 sequence of numbers
    send that to a method that will transate the numbers into a date in a string format.
    Then replace it in the file.
    Here is an example:
    "My name is Peter. Please 1020421277 help me figure this out 108062327. "
    using the following block I can convert it to this
    "My name is Peter. Please | help me figure this out |. "
    [block]
    Pattern p = Pattern.compile("[0-9]{9,10}+");
    Matcher m = p.matcher("");
    String aLine = null;
    while((aLine = in.readLine()) != null) {
    m.reset(aLine);
    String result = m.replaceAll("|");
    out.write(result);
    out.newLine();
    [end block]
    So I need to change the above block so that my sentence looks like this.
    "My name is Peter. Please 05/03/2002 10:21:17 help me figure this out 06/04/1973 17:18:47. "
    The method that converts the numbers into a date is not of a concern because I already have
    the code to do that.
    If anyone has suggestion, please let me know.
    Thanks in advance.
    Peter
    [email protected]

    Never mind, I was able to figure it out....
    Common2 cm = new Common2();
    Pattern p = Pattern.compile("[0-9]{9,10}+");
    Matcher m = p.matcher("");
    m = p.matcher(s1);
    while ((found = m.find())) {
    String replaceStr = m.group();
    System.out.print("\tReplaceString is: " + replaceStr);
    replaceStr = cm.get_date(replaceStr);
    System.out.println("\t\tConverted to: " + replaceStr);
    m.appendReplacement(buf,replaceStr);
    m.appendTail(buf);
    ----------------- The get_date method in Common2 looked like this ------------------------------
    public String get_date(String myString)
    String s;
    long lsecs = Long.parseLong(myString);
    lsecs = lsecs * 1000; // its now milliseconds.
    // Determine default calendar and then the offset to GMT.
    Calendar localCalendar = Calendar.getInstance();
    int offset = localCalendar.get(Calendar.DST_OFFSET) + localCalendar.get
    (Calendar.ZONE_OFFSET);
    // Take the number of milliseconds subtract the gmtoffset
    Date GMTdate = new Date(lsecs - offset);
    // Format date
    Format myformat;
    myformat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss a z ");
    s = myformat.format(GMTdate);
    return s;
    Peter

  • Re: HowTo? Replacement pattern for StringSubstitution?

    With Perl compatible regular expressions, I can have a regex do string replacement with \1 to represent the pattern to be preserved in the replacement.
    IMG_1234.cr2 --> YYMMDD_061234_Description.cr2
    using a pattern such as:
    IMG_([0-9]{4}).cr2 --> YYMMDD_06\1_Description.cr2
    This doesn't work in Bridge, and I don't see what "token" to use as a "placeholder" for the part of the string to be preserved.
    In the above example, the ([0-9]{4}) is recognized, but I don't see how to reuse that placeholder.

    You can use $1 to represent the matching part.

  • HowTo? Replacement pattern for StringSubstitution?

    With Perl compatible regular expressions, I can have a regex do string replacement with \1 to represent the pattern to be preserved in the replacement.
    IMG_1234.cr2 --> YYMMDD_061234_Description.cr2
    using a pattern such as:
    IMG_([0-9]{4}).cr2 --> YYMMDD_06\1_Description.cr2
    This doesn't work in Bridge, and I don't see what "token" to use a a "placeholder" for the part of the string to be preserved.
    In the above example, the ([0-9]{4}) is recognized, but I don't see how to reuse that placeholder.

    Try the Bridge Scripts forum.

  • Help with the   replace(pattern, replace)

    hii
    i hope you can help me, i want to replace two parameters on
    the same replace, the idea it's print in a textArea a XML file from
    a webService, went i get the XML, but this file print &lt; by
    < and &gt; by >.
    Like this:
    &lt;Table&gt;
    &lt;user_id&gt;1&lt;/user_id&gt;
    &lt;server_id&gt;1&lt;/server_id&gt;
    &lt;server_name&gt;Google&lt;/server_name&gt;
    &lt;ip&gt;216.239.51.99&lt;/ip&gt;
    &lt;/Table&gt;
    i used the replace but just change the first &lt; and the
    other not, with this code i do it:
    var myPattern:RegExp = /&lt;/, /&gt;/ig
    var myString:String =
    WS.GetServerList.lastResult.toXMLString();
    myTextArea.text = myString.replace(myPattern, "< , >");
    Does anyone know how to fix this? and print the "<"
    ">" instead of "&lt;" "&gt;".
    please, someone who can help me with this, thanks.

    I think my approach would still work, you just have to adapt it to more dynamic data... My syntax is probably a bit off, but you get the idea:
    hashMap as String[String];
    numMatches as Int = 0;
    dataString as String; //this would hold the runtime text you're testing against
    countPattern as Pattern = Pattern.compile(".*?\{\{.*\}\}.*?"}");
    groupingString as String = "";
    countMatcher as Matcher = matcher(countPattern, arg1 : dataString);
    while(countMatcher.find()) {
    groupingString = groupingString + ".*\\{\\{(.*)\\}\\}.*";
    numMatches++;
    p as Pattern = Pattern.compile(groupingString);
    m as Matcher = matcher(p, arg1 : dataString);
    for(i = 1; i <= numMatches; i++) {
    currentCapture as String = group(m, arg1: i);
    currentReplacement as String = hashMap[currentCapture];
    //perform the replacement on the dataString
    }

  • Dynamically replacing pattern using SQL only

    Hi ,
    Table File name
    CREATE TABLE file_name_table AS
    ( SELECT 'FILE_A_[PATTERN1]_[PETTERN2].txt' AS file_name FROM DUAL
    UNION
    SELECT 'FILE_B_[PATTERN3].txt' FROM DUAL
    UNION
    SELECT 'FILE_B_[PATTERN3]_[PATTERN4].txt' FROM DUAL)Pattern Table
    CREATE TABLE pattern_table AS
    ( SELECT '[PATTERN1]' AS pattern, 'P00191' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN2]' AS pattern, 'P00293' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN3]' AS pattern, 'p567' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN4]' AS pattern, 'p879' AS pattern_value  FROM DUAL
    UNION
    SELECT '[PATTERN5]' AS pattern, 'p005' AS pattern_value  FROM DUAL)Now I need a view which will show the follwing output
    'FILE_A_P00191_P00293.txt'
    'FILE_B_p567.txt'
    'FILE_B_p567_p879.txt'basically the in the output the pattern will be matched and the pattern in file name will be replaced by the pattern value of pattern table. Hope I am clear. Please help.
    Edited by: Mr Lonely on May 22, 2013 1:25 PM -- Fixed the output.

    Hi Jeneesh,
    This is working excellent.
    However I have a small problem.
    If filename contains something in [] for example filename_[FIXED] and that pattern does exists in the pattern table then it's replacing it with null.
    For example.
    FILE_NAME                        NEW_FNAME                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    FILE_B_[PATTERN3].txt            FILE_B_p567.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    TEST_[TEST_PATTERN].txt          TEST_.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       
    TEST_[TEST_PAT].txt              TEST_LOL.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    FILE_A_[PATTERN1]_[PETTERN2].txt FILE_A_P00191_.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
    FILE_B_[PATTERN3]_[PATTERN4].txt FILE_B_p567_p879.txt                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Edited by: Mr Lonely on May 22, 2013 3:21 PM

  • Replacing text in a text file with special characters

    Hi all,
    in my test text file i found an interesting issue, where i can't replace text that looks something like this "New Text Document - Copy (2).txt"
    (gc $logeps)|foreach{$_ -replace "$($file.name)",""}|Out-File $logeps
    the context of my $($file.name) is "New Text Document - Copy (2).txt"
    how can i escape the parentheses characters inside of a variable that i am passing?
    thanks

    That should work if you're running PowerShell 3.0 or later, but in older versions, you'd run into errors if you try to run .Replace on an array of strings.
    While I prefer the string .Replace method in this instance, for future reference, if you want to escape a literal string so it can be used in a regular expression, call the [regex]::Escape method:
    $pattern = [regex]::Escape($file.Name)
    (gc $logeps) -replace $pattern | Out-File $logeps

  • How does replace work?

    I have an encoded string that I want to decode:
                // input:   %3cFSParm%3e%3cHouseholdSize%3e03%3c%2fHouseholdSize%3e
                var locDecodeParm:String = decodeURI(locationParm);
                //  output:<FSParm><HouseholdSize>03<%2fHouseholdSize>
    The problem is "%2f" won't decode to "/".  So I tried:
                var pattern:RegExp = /<%2f/gi;
                locDecodeParm.replace(pattern,"</");
    And variations on that (locDecodeParm.replace("%2f","/" for example) that also don't work. Nor did "//" or "\/".
    Why can't I get this to work?

    I guess I just don't understand what the problem is...
    The code snippet you showed is using swfobject for Flash detection, It does not replace anything in the code, you will see both the <object> and the <script>. So seeing both seems correct.
    How swfobject works is that if it detect the Flash plugin in the Web browser, then it displays the <script> part in the browser. If no Flash plugin, then the <object> will display in the browser window. But both the <object> and the <script> are always part of the code. Nothing is very deleted or replaced.
    That is one of the strengths of swfobject. It allows the site owner to create "Alternate Content", which is what the <object> is. That could just as well be replaced with HTML text describing the Flash content. The use of HTML text for "Alt Content" is most often used for SEO purposes.
    However if <object> is used to place a Flash .swf on the Web page, then the use of swfobject is redundent. Either the Web browser has the Flash plugin and will play the Flash .swf or it doesn't have the Flash plugin. So it is not correct to use <object> to display the Flash as "alternate content", since that is what <script> is for. Replace the <object> with some other type of HTML content, an image and a message saying "Flash needed to display this element"... or something like that.
    Best wishes,
    Adninjastrator

  • New -- Help me add pattern files

    Hello -- I'm fairly new to Photoshop. I want to add one of the pattern libraries I see in the exchange. I have downloaded the .pat file -- I put it in the adobe//preset//patterns folder, then closed and opened photoshop -- no good. I saved the file elsewhere, went to "load pattern" in PHotoshop, selected it, restarted photoshop -- still no good.
    How do I add these external pattern files?

    Since you placed the .pat file in the patterns folder,its' name should be in the list of patterns below "replace patterns..." in the patterns menu after you restart Photoshop. You select your new pattern from that list.

  • Action using a set of patterns....

    Hello there!
    My name is Sandrine, and I am new here (be kind with me )
    I would like to create an action where a user is able to choose from a particular set of patterns (created by me) and excluding all the others (that may be present otherwise) from view. My action is currently working either from choosing from the whole pattern set (using insert menu item in the action), or a single pattern of my choice. (no insert item menu used).
    I want the user to choose from my set of pattern in this particular instance but not the others that are currently in the presets.
    I had the idea of making the action replacing temporarily the patterns with my set (replace patterns in the drop down menu) and then reset or load the user's set at the end of the action. It made me think that maybe people wouldn't want me to mess with their presets in an action, so basically, I am looking for another idea.
    I am currently using PSCS4.
    I can either use a new pattern layer or a new "blank layer" with a pattern overlay (layer style)
    I am really looking for a spark that'll light my Eureka moment.
    Bring the ideas in, any weird thoughts welcome!
    Thanks for any input.

    It made me think that maybe people wouldn't want me to mess with their presets in an action
    They may not mind if they don’t notice it, so it is probably important that the process runs reliably.
    But I doubt that you will be able to achieve this with Actions, Scripting might be the better approach.
    You could ask for help over at:
    http://forums.adobe.com/community/photoshop/photoshop_scripting
    Edit: Depending on the number of patterns and their sizes saving, removing and reloading presets might be cumbersome, so I think a custom menu in a Script might be better.

  • Replace charcter from string in 46c

    Hi,
    If you could send me code for below scanerio that will be great.
    in 46c i have string '/ABCD/te_12' now i want to replace the '/' with '+'  and '_' with '|', can you tell me how to do this.
    thanks,
    john

    hi check the replace statement... hit F1 on replace and make ur code..
    Basic form
    REPLACE f WITH g INTO h.
    Addition
    ... LENGTH len (length specification for field f )
    Effect
    Replaces the first occurrence of the contents of field f in field h with the contents of field g . All fields are handled in their defined length; this means that closing blanks are not ignored.
    The return code value indicates whether the string f was found in h and replaced by g :
    SY-SUBRC = 0 String replaced.
    SY_SUBRC = 4 String not replaced.
    Example
        DATA FIELD(10).
        MOVE 'ABCB' TO FIELD.
        REPLACE 'B' WITH 'string' INTO FIELD.
    returns:
    FIELD = 'AstringCB', SY-SUBRC = 0
    Note
    The fields f and g in the REPLACE statement should not overlap. Otherwise, the result is undefined.
    Addition
    ... LENGTH len ... (length specification for field f )
    Effect
    Searches for the string f in the field h not in its (full) field length, but in the length len .
    Example
        DATA: PATTERN(5) VALUE 'ABC',
              LEN TYPE I,
              REPL_STRING(5) VALUE '12345',
              FIELD(12) VALUE 'abcdeABCDE'.
        REPLACE PATTERN WITH REPL_STRING
                        INTO FIELD.
    does not change FIELD , since 'ABC ' does not occur in abcdeABCDE ' .
        LEN = STRLEN( PATTERN ).
        REPLACE PATTERN LENGTH LEN
                        WITH REPL_STRING
                        INTO FIELD.

  • How to use regular expression using pattern and match concept for this scenario?

    Hi Guys,
    I have a string "We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle"
    I need to replace the numbers based on the below condition.
    if more then 5, replace with many
    if less then 5, replace with a few
    if it is 1, replace with "only one"
    below is my code, I am missing the equating part to replace the numbers could any one of you please help me out fixing this.
    private static String REGEX="(\\d+)";
      private static String INPUT="We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle";
      //String pattern= "(.*)(\\d+)(.*)";
      private static String REPLACE = "replace with many";
      public static void main(String[] args) {
      // Create a Pattern object
           Pattern r = Pattern.compile(REGEX);
        // Now create matcher object.
           Matcher m = r.matcher(INPUT);
           //replace the value 7 by the replace string
    //How to equate the (\\d+)  greater than a number  and use it the below code.
                  INPUT = m.replaceAll(REPLACE);
           //Print the final Result;
            System.out.println(INPUT);
    Thanks and Regards,

    Hi,
    Try the following which makes use of  "appendReplacement" instead with the "start" and "end" methods to locate and check the searched "regExp" string before dynamically setting the "replace" string:
    String regExp = "\\d+";
    String input = "We have 7 tutorials for Java, 2 tutorials for Javascript and 1 tutorial for Oracle";
    String replace;
    Pattern p = Pattern.compile(regExp);
    // get a matcher object
    Matcher m = p.matcher(input);
    StringBuffer sb = new StringBuffer();
    while (m.find()) {
       Integer x = Integer.valueOf(input.substring(m.start(), m.end()));
       replace = (x >= 5) ? "many" : (x == 1) ? "only one" : "few";
       m.appendReplacement(sb, replace);
    m.appendTail(sb);
    System.out.println(sb.toString());
    HTH.
    Regards,
    Rajen
    P.S: Please mark the post as answered/helpful if it resolves your issue for the benefit of all community members.

  • "Match Regular Expression" and "Match Pattern" vi's behave differently

    Hi,
    I have a simple string matching need and by experimenting found that the "Match Regular Expression" and "Match Pattern" vi's behave somewhat differently. I'd assume that the regular expression inputs on both would behave the same. A difference I've discovered is that the "|" character (the "vertical bar" character, commonly used as an "or" operator) is recognized as such in the Match Regular Expression vi, but not in the Match Pattern vi (where it is taken literally). Furthermore, I cannot find any documentation in Help (on-line or in LabVIEW) about the "|" character usage in regular expressions. Is this documented anywhere?
    For example, suppose I want to match any of the following 4 words: "The" or "quick" or "brown" or "fox". The regular expression "The|quick|brown|fox" (without the quotes) works for the Match Regular Expression vi but not the Match Pattern vi. Below is a picture of the block diagram and the front panel results:
    The Help says that the Match Regular Expression vi performs somewhat slower than the Match Pattern vi, so I started with the latter. But since it doesn't work for me, I'll use the former. But does anyone have any idea of the speed difference? I'd assume it is negligible in such a simple example.
    Thanks!
    Solved!
    Go to Solution.

    Yep-
    You hit a point that's frustrated me a time or two as well (and incidentally, caused some hair-pulling that I can ill afford)
    The hint is in the help file:
    for Match regular expression "The Match Regular Expression function gives you more options for matching
    strings but performs more slowly than the Match Pattern function....Use regular
    expressions in this function to refine searches....
    Characters to Find
    Regular Expression
    VOLTS
    VOLTS
    A plus sign or a minus sign
    [+-]
    A sequence of one or more digits
    [0-9]+
    Zero or more spaces
    \s* or * (that is, a space followed by an asterisk)
    One or more spaces, tabs, new lines, or carriage returns
    [\t \r \n \s]+
    One or more characters other than digits
    [^0-9]+
    The word Level only if it
    appears at the beginning of the string
    ^Level
    The word Volts only if it
    appears at the end of the string
    Volts$
    The longest string within parentheses
    The first string within parentheses but not containing any
    parentheses within it
    \([^()]*\)
    A left bracket
    A right bracket
    cat, cag, cot, cog, dat, dag, dot, and dag
    [cd][ao][tg]
    cat or dog
    cat|dog
    dog, cat
    dog, cat cat dog,cat
    cat cat dog, and so on
    ((cat )*dog)
    One or more of the letter a
    followed by a space and the same number of the letter a, that is, a a, aa aa, aaa aaa, and so
    on
    (a+) \1
    For Match Pattern "This function is similar to the Search and Replace
    Pattern VI. The Match Pattern function gives you fewer options for matching
    strings but performs more quickly than the Match Regular Expression
    function. For example, the Match Pattern function does not support the
    parenthesis or vertical bar (|) characters.
    Characters to Find
    Regular Expression
    VOLTS
    VOLTS
    All uppercase and lowercase versions of volts, that is, VOLTS, Volts, volts, and so on
    [Vv][Oo][Ll][Tt][Ss]
    A space, a plus sign, or a minus sign
    [+-]
    A sequence of one or more digits
    [0-9]+
    Zero or more spaces
    \s* or * (that is, a space followed by an asterisk)
    One or more spaces, tabs, new lines, or carriage returns
    [\t \r \n \s]+
    One or more characters other than digits
    [~0-9]+
    The word Level only if it begins
    at the offset position in the string
    ^Level
    The word Volts only if it
    appears at the end of the string
    Volts$
    The longest string within parentheses
    The longest string within parentheses but not containing any
    parentheses within it
    ([~()]*)
    A left bracket
    A right bracket
    cat, dog, cot, dot, cog, and so on.
    [cd][ao][tg]
    Frustrating- but still managable.
    Jeff

  • Search And Replace Patter VI

    I'm struggling with using the search and replace patter to replace a number of substring matches within a string, can anyone help and tell me what am I doing worng? Not an expert in regexps
    I'm basically trying to replace all the matches for "NONE","none" or "normal" with "OK within the "1NONE2none3normal4" string
    Thanks
    Solved!
    Go to Solution.

    From the help on for the "Match Patern" VI: "This function is similar to the Search and Replace Pattern VI. The Match Pattern function gives you fewer options for matching strings but performs more quickly than the Match Regular Expression function. For example, the Match Pattern function does not support the parenthesis or vertical bar (|) characters." The "Search and Replace Pattern.vi" uses Match Pattern internally.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Maybe you are looking for

  • [sce8000 web filtering / parental controls]

    Hi, All: In a couple of Cisco URLs it says that the SCE8000 integrates with Websense (and AdvancedMobile) to support url filtering and parental controls. See here: http://www.cisco.com/en/US/partner/prod/collateral/ps7045/ps6129/ps6257/ps6135/white_p

  • Re: Name Service

    Hi, Do you know how to do it in Tool without redirecting stdout ? Daniel Nguyen Freelance Forte Consultant KALLAMBELLA Ajith wrote: > Yes. You can list the named objects using NameService agent commands using EConsole or Escript. Look into the System

  • Custom Bookmark Format for Law Firm

    I have a client who is a transactional attorney and she needs to deliver a "closing cd" to all partied involved, which is basically a copy of all the documents for the current RE deal.  She showed me an examlpe of another law firms closing CD and ask

  • How do I export/inport an activity diagram for someone else to make updates

    I created several projects with activity diagrams. Someone else need to update just the diagram. How can I make this available to them. Thanks,

  • How to create a Principal and set it to request

    How do I set a Principal to a request object? This is after I created my own Principal. Thanks in advance Jim