Corresponding to the string of text with a keyword and check whether it exists or not

We have this DESCRIPTION column, and the data inside it are:

Mr. Redmond Bred is to have a red balloon. His tie is also red.

Now, when you use it AS operator with the keyword 'red', he finds a match in these 3 words: Redmond, Bred and red.

But in my case, the match should happen with the word "red" only. Is this possible?

Yes, it is possible, for example by using regular expressions.

Also please note that your first assumption is wrong. The like operator won't find Redmond.

Example of

select *
from dual
where regexp_like('Redmond''s Bred is having a red balloon. His tie is also red.','(^|\s)red(\s|$)');

Post edited by: SvenW. : added example

Tags: Database

Similar Questions

  • When going through the process of downloading with social monkee and reach the point add it to firefox, I get the following message: "social Monkee cannot be installed because firefox is unable to modify the required." How can this be repaired?

    When going through the process of downloading with social monkee and reach the point add it to firefox, I get the following message: "social Monkee cannot be installed because firefox is unable to modify the required." How can this be repaired?

    Which is usually caused by a lack of unpacking the directive (< em: unzip > true < / em: unzip >) in the file install.rdf to this extension.

    See https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking

  • I would like to install a copy of the CS6 on mac with os x and pc with WIN7. Is this possible?

    I would like to install a copy of the CS6 on mac with os x and pc with WIN7. Is this possible?

    In order to use it on Mac, you will need to purchase another license for Mac.

    Purchase CS 6 Creative Cloud now includes Creative Suite Master Collection and Design Premium features

    Or, you can go for creative cloud that you can use on both machines Alternately, one at a time. Pricing and membership creative cloud plans | Adobe Creative Cloud

  • I need to select all the blocks of text in a document and align text blocks in the back pages left frame margin and the text in the pages front to the right margin.

    Hello

    Am new to Java script.

    Can someone help me out here, I need to select all the blocks of text in a document and align text blocks in the pages back to the left margin frames and text in pages recto at the right margin.

    Thank you
    Harish

    Hi Harish,

    Try this.

    var doc =app.activeDocument,
        _pages = doc.pages;
    doc.viewPreferences.rulerOrigin = RulerOrigin.pageOrigin;
    for(var i =0;i<_pages.length;i++)
    {
            txfms = _pages[i].textFrames.everyItem().getElements();
            for(var j =0;j
    

    Kind regards

    Cognet

  • PE 9.0 no sound with video to DV AVI type 2, but the sound is ok with Media Player and Power DVD

    PE 9.0 no sound with video to DV AVI type 2, but the sound is ok with Media Player and Power DVD

    Werner,

    Good news!

    When I install a new video driver, I also go to Realtek, download and install their last too.

    Good luck and happy editing.

    Hunt

    PS - Looks like you can mark this thread as a response. If you need help, please see this article: http://forums.adobe.com/thread/1058744?tstart=0

  • my computer with windows broken and now my new computer does not have windows, is it possible to get windows on my new computer from my old?

    my computer with windows broken and now my new computer does not have windows, is it possible to get windows on my new computer from my old?

    Hello

    You tell us what type of license you have.

    If the former was preinstalled, NO, you cannot transfer it.

    Read this information:

    If the laptop came with the preinstalled Windows operating system (Dell, HP, Acer, etc.), this product key supplied with the laptop is preinstalled OEM license and is not transferable.

    OEM license/product key (systems of operating pre-installed on Dell, HP, etc.) is related to the first machine it is installed on and dies when dies of this machine.

    The above applies also to OEM system builders licenses.

    License of operating system in detail, that you buy and install yourself, are allowed to be transferred to another machine.

    And retail licenses also can be installed on a machine at one time.

    ___________________________________________________

    And please read this, you can:

    http://www.Microsoft.com/OEM/en-GB/licensing/sblicensing/pages/licensing_faq.aspx#fBid=cbW6pY-wjS6

    See you soon.

  • My Mac has said that I don't have the necessary permissions, (although I repaired permissions and checked that I am an administrator of this computer) for the upgrade - what can you tell me what the problem is? Mac 10.5.8

    My Mac has said that I don't have the necessary permissions, (although I repaired permissions and checked that I am an administrator of this computer) for the upgrade - what can you tell me what the problem is? Mac 10.5.8

    This has happened

    Each time Firefox opened

    I tried to upgrade to version 2.0

    User Agent

    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en - us) AppleWebKit/533.16 (KHTML, like Gecko) Safari/533.16 Version/5.0

    See http://kb.mozillazine.org/Installing_Firefox#Mac_OS_X
    .....
    If you have Mac OS X 10.5 or newer then follow these steps:

    Download a new copy of the Firefox program: http://www.mozilla.com/firefox/all.html
    Trash the current demand for Firefox to do a clean reinstall.
    Install the new version you downloaded.
    Your profile data is stored in the Firefox profile folder, so you will not lose your bookmarks and other personal data.

  • I found an old vista home basic dvd with a key, how can check whether key works but not install it?

    I found an old vista home basic dvd with a key, how can check whether key works, but not install it? some dvd install can be live boot from themselves too [password required for a direct start?]?

    Hello

    You must install it to see if it is legal to do so.

    There is no public database of product keys.

    See you soon.

  • How can I know the pop up notice update is legitimate and check the installation?

    How can I know the pop up notice update is legitimate and check the installation? I understand that you have to make sure that all previous updates have been removed before adding a new update.

    no adobe update must be removed or undone to install future updates.

    and what app triggers the popup?

  • Check if a string contains "text" in a box, and only if it does not, add it to the chain.

    I have some comboboxes. I want a text field to add a channel to itself, that contains the text selected in each combobox. I got it with this:

    var a = this.getField ("CoBi_text");

    for (i = 1; i < 16; i ++) {}

    var t = (this.getField("CoB_"+i).valueAsString);

    Si (t ! = « ») {}

    a.Value += t + ',';   }   }

    But what adds text even though I select the same option in any of the combobox control. How can I include a conditional don't skip the increment if "the text is already in the string?  I tried this:

    If ((t! = «») & & (a.value.indexOf ("t") < 0)) {}

    a.Value += t + ',' ;}

    But it causes the chain add the text first, don't increment not any text more after that.

    PS. This text field will be hidden and later used on another condition (if it contains 'a specific text'), some other triggering actions.
    So the ',' (comma) is probably not necessary, but I think that it should not be in the way of a proper search indexOf (right?)

    Thank you.

    eHRM, nevermind. I got it.

    the "t" inside indexOf should not "s...".

    var a = this.getField ("CoBi_text");

    for (i = 1; i<16;i++)>

    var t = (this.getField("CoB_"+i).valueAsString);

    If ((t! = «») & (a.value.indexOf (t))<0) )="">

    a.Value += t + ',' ;}

    Now, he adds "text", but not more than once for each different text on each drop-down list.

    There is always the question of the modification of a selected item in a combobox control, how do I remove the old text from the text box but I think than any forced recalculation should be enough.

    Thank you for taking the time to respond and for the link!

  • Write a string of text with .write

    Hi, I did a lot, but for some reasont (that I don't see clearly right now), I can't get it to work.

    1. I collect the text of a specific layer of a bunch of InDesign Document and store them in "myDatas".
    2. I convert a string with 'join' myData (I guess that's not necessary, but I'm out of ideas)
    3. open/create the text file
    4. (try to) write the string inside
    5. Close the text file.

    The result is an empty text file but my alert show my all of my collected texts!

    And if I do

    myStories = "from the text of the string.

    This text is in the text file

    var myTxtFile = File ("~/Desktop/" + myDocumentNumber + "_Texts.txt");

    myStories = myDatas.join ("\n");

    myTxtFile.open ("w");

    myTxtFile.write (myStories);

    myTxtFile.close ();

    Alert ("myStories:" + myStories);

    first try to define the encoding and the line break:

    myTxtFile.encoding = "UTF-8";

    myTxtFile.lineFeed = "Unix"; One of the values "Windows", "Macintosh" or "Unix".

    What is happening on Mac or PC? Think that I #ve read about it, but it would be too much to google

  • How to set the size of text with the report generator

    Hello.

    I'm trying to set the size of the text with the report generator, but I find that I can't do this. Here is an example of the code that I use. Can someone tell me what I'm doing wrong please?

    Thank you, Alec

    I was generation from a word template.

    I hacked my version of the Toolbox to give me maunal indicator control "model? He had obtained his permenatly self stuck on "T". I exposed this flag outside the API, so I can control under certain weather conditions I may or may not use the model police.

    Does anyone know how to use this toolkit, or I did the right thing?

    Cheers, Alec

  • Fill text with a picture and zoom so that we can "dive" into the text to see the image in full scale

    Hello

    I made a text filled with an image, and I'd like to zoom in on the letter, as if we can "dive" into the letters, then see the whole picture in full scall (my resolution is 1920 x 1080). Do you know how to make such an animation?

    screenshotjpg.jpg

    Here's a screenshot to show you what I did.

    I assume you are using the 2 as a track matte for an image. I can only imagine because you gave us no details or a screenshot of your computer with all the properties changed all of the layers has revealed. I assume you want to reveal the image below rather than pushing into it.

    If this is the case, then you can make the layer containing the number 2 a 3D layer and animate the position so that it moves to and in front of the camera or you can leave the 2D layer and animate the scale the layer. If you use the 3D trick, you will get a more natural look. You can consider to move the anchor point of the layer to the part of the 2 that you want to be at the center of the revelation. This is what a basic 3D displacement would look like.

  • Replacement of the graphics/images/text with something else?

    Is there an easy way to replace a graphic, video, or text that is already in the timeline panel so that all effects and framing key can be applied by a new element in the same way that it was previously applied?

    This is AE base that everyone should know. If you type footage to replace in the field of research help at the top of the AE will get a step by step. Simply because it's the fourth of July, I will give you here. Select the layer in the timeline panel, you want to replace. In the project Panel, select the new replacement images. Hold down the alt/option key and drag images of replacement in the project Panel to the timeline.

    Because the text layers do not appear in the project Panel, you cannot replace the images with text. You can however put a text layer in the new model and then alt/option drag this new model in the timeline.

  • How to replace a part of the structure XML text with an image.

    I need to replace specific items within my XML structure with a picture and I have problems using the existing XML structure for that.

    I was expecting something as simple as myDoc.xmlElements [0] .xmlElements [0] .xmlElements [0] .silence = new File ("MyImgPath.ext");

    I can use GREP to search the text of each item in my XML structure I want to replace the text, place the image and the result is what I want.  However, in the rare case where the same text as the header, is in one of the paragraphs he too would be replaced by the image and we can have.

    My XML structure is slightly more complicated, but this example contains the necessary elements:

    > Root

    > Group

    > Header

    > Article

    Well, I managed to find a solution to my problem.  I don't know if it's the best way to go about this, but it works for me.

    myDoc var = app.open ('/ / the/path/to/my/doc ', OpenOptions.OPEN_COPY);

    var myDoc.xmlElements = myXML [0] .xmlElements [x] .xmlElements [0];

    var myImg = new FIle ('//path/to/my/image');

    myXML.contents = "; To clear all the text

    myDoc.select (myXML); Selects the xmlElement

    myDoc.selection [0] .insertionPoints [0] .place (myImg); Place the image in the selection

Maybe you are looking for

  • Satellite 2410-404: General Extension RAM issues

    There are two memory two modules (256 + 256) installed on my laptop Satellite 2410-404. There are two locations of memory on my laptop. I want to thank the memory, but I could not find the answers to my questions, but I looked in the manual and to th

  • Win 7

    I'm waiting to replace my office until after October 22, so I cannot load Win 7 over Vista.  I read recently that it will be possible to do an install clean with the upgrade media that be part of a new purchase now (it is reformattng and installation

  • Bought with mspoints Xbox games

    If I buy fuzion frenzy on xbox 360 with microsoft points it'll work?

  • Error code 0 x 8007064 cannot install MSE or Silverlight

    I went through everything I can find to solve this problem. It started with the problem that I could not update Microsoft Security Essentials or Silverlight. He no more let me uninstall. I also read that it is a matter of .net, but I don't even have

  • I can't rip a CD with windows media player 12 on windows 7. Help, please

    When I put a cd and click the rip, this is the error I get. (Windows Media Player cannot find the file. If you try to play, burn, or sync an item that is in your library, the element can point to a file that has been moved, renamed, or deleted). When