Extracting part of a subject title

Hello,
I'm looking to extract part of a subject title sandwiched between two special characters ([ & ]) and use that to create a new subject title in a new e-mail.
So for example, if the subject title of the e-mail says "[This is the main subject title] but not this part", I want to extract the bit between the two brackets and create a new subject title in a new e-mail which in this case would say "This is the main subject title". Obviously this text can vary.
Can this be done by use of filters within a Cisco ESA? Would appreciate any pointers how to extract it if it can be done.

You can use either a content filter or a message filter.
Search using a regex like this one...   (?<=\[)[^]]+(?=\])
I got that from here:http://stackoverflow.com/questions/2403122/regular-expression-to-extract-text-between-square-brackets
You may have to fiddle with it...
Then for the action, set the subject to "$MatchedContent" (look at the online help for the content or message filters)

Similar Messages

  • Extract part of xml into CLOB or XMLType

    I need to extract part of XML into CLOB or some another type. But I don't need only extract data, by whole part od xml with elements. How could I do it in PL/SQL?
    For example from this xml:
    <bookstore>
    <book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
    </book>
    <book category="CHILDREN">
    <title lang="en">Harry Potter</title>
    <author>J K. Rowling</author>
    <year>2005</year>
    <price>29.99</price>
    </book>
    </bookstore>
    I need to get:
    "<book category="COOKING">
    <title lang="en">Everyday Italian</title>
    <author>Giada De Laurentiis</author>
    <year>2005</year>
    <price>30.00</price>
    </book>"
    THX

    That's why I need to process every book alone - to know which authors belongs to single book.For that specific requirement, a single query would do.
    Assuming variable "v_xml_clob" holds the XML document :
    <bookstore>
      <name>nameOfBookstore</name>
      <address>1st Avenue 24, SF</address>
          <book category="COOKING">
            <title lang="en">Everyday Italian</title>
            <author>
              <name>Giada De Laurentiis</name>
              <birth>1956</birth>
            </author>
            <author>
              <name>xxx</name>
              <birth>1955</birth>
            </author>
            <year>2005</year>
            <price>30.00</price>
          </book>
          <book category="CHILDREN">
            <title lang="en">Harry Potter</title>
            <author>
              <name>Rowning</name>
              <birth>1977</birth>
            </author>
            <author>
              <name>xxx</name>
              <birth>1955</birth>
            </author>
            <year>2005</year>
            <price>29.99</price>
          </book>
    </bookstore>You can do :
    SELECT *
    FROM XMLTable(
    'for $i in distinct-values($d//book/author/name)
      where count($d//book/author[name=$i]) = 1
      return $i'
    passing xmltype(v_xml_clob) as "d"
    columns author_name varchar2(80) path '.'
    AUTHOR_NAME
    Rowning
    Giada De Laurentiis

  • How to set a form field that automatically saves as email subject title

    I am creating a form in acrobat 9 and want the submit to email button to automatically use the information from one of the text fields as the subject title of the email. So when the client submits the form at the end the PO number they have used will automatically be the email subject. Is there any way to do this? I have found an example created using javascript but I am very much a novice with this so I don't know where to start with this? Any help would be greatly appreciated

    Read this tutorial:
    http://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

  • How can I extract part of a PDF file and copy it to a new PDF file?

    How can I extract part of a PDF file and copy it to another PDF file?

    You will need Adobe Acrobat for this.

  • I'm trying to update my iPad 2 but an error keeps popping up after the extracting part...

    im trying to update it to OS 5.0.1 or whatever, and it gets through everything until the extracting part and an error pops up. i have the most recent iTunes, i temporarily disabled the antivirus and firewall, and i reset my whole ipad... what now!

    If you continue and you lose everything, you will be able to download most of the content again for free as long as you use the same Apple ID. You can read this about downloading past purchases.
    http://support.apple.com/kb/HT2519
    But before you continue and lose everything, try this.
    Eject your iPad, quit iTunes and restart your computer. Then launch iTunes and go to Edit>Preferences>Devices. See if you have mutliple iPad backups showing in there. If you have multiple backups, delete all but one of them. Also check the box at the bottom that turns off auto sync .... Prevent iPods ......Click OK and Then quit iTunes.
    Connect the iPad again and launch iTunes. Right click on your iPad name on the left side of iTunes and select backup. See if the iTunes will create a backup. If it does, after it finishes, click on the Summary Pane on the right and click on check for update. Try to update again.
    If it all goes OK, after you update the iOS you can back to Edit>Preferences>Devices and turn on atuo sync again - assuming that is how you want to sync.

  • Extract part of image & save with transparent background

    What is the best way to extract part of an image & save it with a transparent background?  I had hoped to the extracted images in 2 different ways.
    Firstly just to paste into another image.
    Secondly I'd like to try to open both the extracted item as well as the whole original photo in different video editing programs including Premiere Elements & sony Vegas.  What is the best  way to do this?

    Here's what you could do.
    First make sure you have both images open in editor
    1. Open the image and select the area using the magnetic lasso/quick selection tool.
    2.  Select Layer -> New -> Layer Via Copy
    3. Now in the layers palette, right click the layer and select 'Dulicate Layer'
    4. In the duplicate layer dialog, in document - select the other image, where you would like to paste the image to.
    5. You and ajust the poition of the pasted area/resize it using the move tool or transform tool (Ctrl + T).
    6. Save the image with a new name
    If you simply want to save the image with transparency (after step #2) - you may -
    > hide the previous layer and Save the image as a png/gif so transparency is presereved.
    Hope that helps.
    When you have teh saved documents you can open them up in different editors.
    Regards,

  • BLS, extract parts of an XML

    Hi.
    I may have asked before, but can not find the answer anywhere. I have an XML which I want to extract parts of. It this possible an how?
    I want to get the part
    /ns1:GetProductionSchedule
    /ns2:GetProductionSchedule
    /ns2:DataArea
    /ns3:ProductionSchedule
    and everything below it....
    The XML is as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <GetProductionSchedule xmlns="http://Wonderware.WWEI.Services">
         <GetProductionSchedule xmlns="http://www.wonderware.com/wwei/v0201/schemas">
              <ApplicationArea>
                   <Sender>
                        <LogicalID/>
                        <ComponentID/>
                        <TaskID/>
                        <ReferenceID/>
                        <ConfirmationCode/>
                        <AuthorizationID/>
                   </Sender>
                   <CreationDateTime/>
                   <BODID/>
                   <UserArea/>
              </ApplicationArea>
              <DataArea>
                   <ProductionSchedule xmlns="http://www.wbf.org/xml/b2mml-v02">
                        <ID>000003176585</ID>
                        <Description/>
                        <Location>
                             <EquipmentID/>
                             <EquipmentElementLevel OtherValue=""/>
                             <Location>
                                  <EquipmentID/>
                                  <Any/>
                             </Location>
                             <Any/>
                        </Location>
                        <PublishedDate/>
                        <StartTime/>
                        <EndTime/>
                        <EquipmentElementLevel OtherValue=""/>
                        <Any/>
                   </ProductionSchedule>
              </DataArea>
         </GetProductionSchedule>
    </GetProductionSchedule>

    Poul,
    Ignore my previous message.  Still mentally working in 11.5. 
    I assume you are using a tracer to display the extracted xml?  I built a little test transaction and you were right.  There does not appear to be any extracted xml in the Tracer.Message property.  So I did used an XML Saver to save it using the path: "db://ProjectA/WEB/test.xml".  Lo and behold the xml was extracted just as Michael and I had expected.  So the problem appears to be in the Tracer rather than in the method.  This is apparently a problem similar to trying to use a Tracer to display the xml output of a repeater.  Which should be fixed in 12.1.
    Let me know what you find out.  I am working in 12.0.5.
    Good luck,
    Mike
    Edited by: Michael Appleby on Oct 14, 2008 5:17 PM

  • How to extract part of a pdf page and save that as a pdf page on its own?

    I need to extract part of a pdf page. I know how to extract full page, but that is not what I want. I need to extract part of it, ideally, using the mouse to select some rectangular area, and export the selected part to either separate pdf page, or to export to  vector graphics such as .svg
    Is there a tool to allow one to do this? Currently I take screen shot of the page, and use other tools to extract the parts I want. thanks.

    thank you. The crop tools helps. But I am still not sure what to do after I select the area I want. I looked at Acrobat Help | Crop PDF pages
    So, after I select the crop tool and select the area. Now what to do?
    If I double click the cropped area, as the help says, it will just delete everything on the page except the cropped area.
    How do I tell it to either export the selected area to .svg, or save the selected area to a separate one page pdf file?  I do not want to modify the original PDF file, I just want to make a copy of the cropped area, either to .svg image, or to separate pdf file, so I can include that in another document.

  • Please Label Subject/Title Field!

    PLEASE label the subject/title field for a new post.  Too many people aren't realizing what that field is and are trying to put their entire post into it.

    I finally figured out why I think - if you take a look at the page where most new users probably start:
    This is what they see - so, they ask the question (and sometimes a very long question). Not until after you click on the blue button, you will get the text editor (with a whole empty field.....)

  • Extracting parts for film score

    I am scoring a film, and I need to record live strings over my sampled strings.
    I have quantized most of the score, but when I was working with the director and editor, I had to sometimes manually slide the in-point of the cue to line up with a specific frame or spot. When this happens, I often fall off the beat- meaning, that when I am in the matrix edit window, the first note may appear between two 16th notes, or something like that. Is there any way to adjust the arrange/matrix window to have the first beat land exactly where my cue begins so when I extract parts, they will land on a down beat? Otherwise, my part is going to be all over the place. Hopefully this makes sense…
    Best,
    Adam

    Hi Adam ... how about this for a solution:
    1 - create a new document for the cue that needs to shift. Save your document as "Cue Experiment" or something..
    2 - set your left locator at the very beginning of the document - bar 1 or OO.00 -
    3 - Set the right locator at the very beat that you want to become the downbeat (select the note, go to it with SPL and then set right locator by Song Position Line. making sure you zoom in very big because you are making such a small change
    4 - Select all then go to the Menu: Region>Cut/Insert Time>Snip: Cut time and move by locators ... this will shave off a fraction of the time and could move the whole cue forward onto the right beat.
    This may or may not do the trick but I am sure the film scorers on the Forum will surely come up with the right answer

  • Display forms title as a part of IE window title

    Hi,
    Does anyone know how to display forms title as a part of IE window title in Webforms 10g?
    For example: if I am on the Order Entry form, the IE title would be Order Entry - Microsoft Internet Explorer.
    Thanks all,
    L

    Thanks Terrible :-)
    Yes, I did change the pageTitle in the formsweb.cfg to have the Application name. And you are right that is the one time only...
    I would like to somehow passing a forms title as a variable that is appended to the Application title at runtime.
    Gerd, you mention about the java applet which can interact back to the IE-engine. Have you done one before? I am new to this concept.
    Thanks all for your help :-)
    L

  • Extracting part of a file name

    I have a file with the naming convention as such:
    AR999 Smith, Bob EM v1.mov
    I need to extract out the v1 part. Other files may have the same name but with a v2, v3,v4 etc on the end so I will need to know what version number we are on. How do I set up a variable that knows what the version number the file is. for example
    set the_version to last text item of a_file
    then the_version variable would equal, v1
    something like that.
    I know you have to use Applescript text item delimiters, I just cannot make it work.
    thanks

    If you know the format of the text string, there are several different ways to get the last couple of characters - text item delimiters, text range, word item, etc. The following example gets the last word of a file name:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #FFDDFF;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set SomeItem to (choose file)
    set {name:TheName, name extension:TheExtension} to (info for SomeItem)
    if TheExtension is in {missing value, ""} then
    set TheExtension to ""
    else
    set TheExtension to "." & TheExtension
    end if
    set TheName to text 1 thru -((length of TheExtension) + 1) of TheName -- just the name part
    set TheVersion to the last word of TheName
    display dialog TheVersion
    </pre>

  • Extract part of clob

    Hi ,
    sorry I am posting it again here as this section is more appropritate one I guess.
    I am not an extensitve sql or pl/sql writer. I am basically java developer, I want help in extracting a part of xml in clob data field.
    the Clob field has data like this
    field name is messagedata and say the table name is messages
    <message>
    <rootcause>Short to Lead-Time Requirement</rootcause>
    <contactphone>123456</contactphone>
    <contactname>Jonathan Keen</contactname>
    <partname>Test, Name</partname>
    <shutdownsource>94in HT</shutdownsource>
    <enginesn>123456</enginesn>
    <partnumber>testpart</partnumber>
    <comment>test</comment>
    <promisedate>Today</promisedate>
    <productcenter>CANMC-Nozzles</productcenter>
    <enginemodel>GG-8</enginemodel>
    </message>
    I need to extract value within the xml tags <partname>Test, Name</partname>
    I tried
    SELECT dbms_lob.substr(messagedata,50,dbms_lob.instr(messagedata,'<partnumber>'))
    from messages
    I know above will give 50 characters from the word <partnumber>, but how to extract exact vaue
    I also tried
    SELECT regexp_substr( (dbms_lob.substr(messagedata,50,dbms_lob.instr(messagedata,'<partnumber>')) ), '[^</partnumber>]+') "REGEXP_SUBSTR"
    from messages;
    it is giving wiered values , some of them are exact partnumber values but some are not.
    how to fix this.
    thanks in advance.
    SK.

    Are you dealing with a xml clob? If so why not simply
    SQL> with t as (
    select to_clob('<message>
    <rootcause>Short to Lead-Time Requirement</rootcause>
    <contactphone>123456</contactphone>
    <contactname>Jonathan Keen</contactname>
    <partname>Test, Name</partname>
    <shutdownsource>94in HT</shutdownsource>
    <enginesn>123456</enginesn>
    <partnumber>testpart</partnumber>
    <comment>test</comment>
    <promisedate>Today</promisedate>
    <productcenter>CANMC-Nozzles</productcenter>
    <enginemodel>GG-8</enginemodel>
    </message>') cl from dual
    select extractvalue(xmltype(t.cl), '//partname') partname
      from t
    PARTNAME                                                                       
    Test, Name                                                                     
    1 row selected.?

  • I want to extract part of webservice response(not entire response)

    Hi guys,
    I created one BPEL process in Oracle Jdeveloper.I am invoking some WSDL url to get the response.It is giving the response in below (example - I am giving some example format here) format:
    <data>
    <name> name1 <name>
    <type> type1 </type>
    </data>
    <data>
    <name> name2 <name>
    <type> type2 </type>
    </data>
    <data>
    <name> name3 <name>
    <type> type3 </type>
    </data>
    I am getting like above format.But I want to have the response depending on type (type2) like below.Basically I want to extract
    the below details from entire response:
    <data>
    <name> name2 <name>
    <type> type2 </type>
    </data>
    So that I want to map above format to another application required response format (using transform activity) like below:
    <appData>
    <appName> name>
    <appType> type>
    <appData>
    name ----- > appName
    type -----> appType
    So How can we do that?Can anybody help me on this?
    Edited by: 899283 on Jul 4, 2012 10:28 PM

    Hi guys,
    I am getting When I invoke the Secured webservice (which is in partner link), below error:
    remoteFault>
    <part name="summary">
    <summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s):
    'WSDL URL HERE'</summary>
    </part>
    <part name="detail">
    <detail>Unable to access the following endpoint(s):
    'WSDL URI HERE'</detail>
    </part>
    I red in one forum below solutions but I am not able to understand them:
    1 solution) Add the security policy named "oracle/wss_http_token_client_policy"
    For reference, create two binding properties
    1. oracle.webservices.auth.username
    2. oracle.webservices.auth.password
    For the above two properties, provide the appropriate values.....
    2 solution)
    Sending username and pass to a secure service being called from bpel itself ,simply add the partnerlink properties below and deploy your bpel.
    <partnerLinkBinding name="SecureWebService">
    <property name="wsdlLocation">SecureWebService.wsdl</property>
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">username</property>
    <property name="basicPassword">password</property>
    <property name="preemptiveAuthentication">false</property>
    </partnerLinkBinding>
    Can u anybosy help me to understand above points and tell me how to to set the HTTP authentication headers to a service in Composite?

  • OdiReadMail  - extract field from and subject in file

    Tool odiReadMail extract the body of the message in to file.
    I wont extract in this file fields form e-mal "from" and "subject". How i can do it?

    Yes. I want to extract fields "subject", "sender" and body mail message and place them in a file.
    I think, that it is necessary to change odiReadMail. But I do not know where to find source codes of this ODI tools.
    Message was edited by:
    RAD

Maybe you are looking for