Regex to find the word

Anyone know the regular expression to search for if a variable contains a word has for example this var "Total of surplus percentage of an amount of $2000.00" ".

I therefore need to know that it contains the word ' Percentage '?

Here is my code

cfset xyz =' Total percentage excess in the amount of $2000,00 '

CFSET foundword = REFind (' percentage ', xyz)

The above does not work

Word found at position #foundword #

Word not found

Tags: ColdFusion

Similar Questions

  • using the function search is not finding the words I know are in my document. Why?

    using the function search is not finding the words I know are in my document. Why?

    The fact that you see a Word does not mean that it is 'real' text. You can select the word? If so, copy and paste in another application (such as Notepad). He always look the same? If the answer to each question is, you also cannot find it by using a search.

  • How can I find the word pad and add it to my toolbar for easy access

    I want to use the word pad.  I don't have the icon on my toolbar.  It's not in my menu start, or on my list of programs.  How can I find?  How do I put in my toolbar?  Help shows you your site just click on word pad icon located next to the Home tab.  I'd do it, but he's not here.  Is there a reason why?

    Just type in wordpad in the Windows Explorer search window

    Or try this path "%ProgramFiles%\Windows NT\Accessories\wordpad.exe" in a new shortcut

  • find the word in the query

    Hello

    I want to print the word before _ @.

    request as first of all find the underscore if line _ is printing before _.

    Example:

    [email protected]

    released as:-vinoth

    If not find before underscores @ as

    [email protected]    

    Released as:-Marie Laure

    WITH t AS

    (SELECT "[email protected]" as NAME

    OF THE DOUBLE

    UNION ALL

    SELECT "[email protected]" AS NAME

    THE DOUBLE)

    SELECT THE CHECK BOX

    WHEN INSTR (NAME, '_') = 0

    THEN REPLACE ((SUBSTR (NOM, 1, (INSTR (NOM, ' @'))-1)),)

    '_',

    ''

    )

    WHEN INSTR (NAME, '_') > 0

    THEN SUBSTR (NAME, 1, (INSTR (NAME, '_') - 1))

    END

    T

    Kind regards

    friend

    Post edited by: mostwanted!

    Post edited by: mostwanted!

  • How to find the words that spans end of line to the next line in pdf format?

    I use Adobe Acrobat Pro X version for our development and form maintenance. I am writing a command Acrobat JAVA script which reads through all words and run the spell check and reports the wrong words spelled in an excel sheet. Because I run this script in batch for more than 1000 PDFs - I get a lot of words together. When I looked in the PDF files all these words are good looking because it makes its appearance at the end of the right margin, and the next word is in the next line. Since there is no space between them, it was mined in one word. Where the failure.

    I have used wordf = this.getPageNthWordQuads (i, j) to get the word start and end coordinates. When I look at my values create a rectangle, and extending through the lines. I got the coordinates for the ordinary Word and which cover the two lines acoross. the coordinates are same.

    I think I'm screwed I 8000 words and not the slightest idea how to get rid of them actual misspelled words.

    Help, please. Let me know if any /method class so I give the speech will give me the end of line or I have to go to the next layer to find this split.

    the addnot is somehow marking the words using this contact information - please hellp understand me how this works. Thank you.

    for all pages

    for (var i = 0; i < this.numPages; i ++)

    {

    For all words

    PG += 1;

    numWords = this.getPageNumWords (i);

    for (j = 0; j < numWords; j ++)

    {

    get spell checking

    ckWord = spell.checkWord (this.getPageNthWord (i, j))

    If (ckWord! = null)

    {

    Jn = 0

    ml = 0

    If the misspelled word found.

    wordf = this.getPageNthWordQuads (i, j)

    swordf = wordf.toString)

    var St = swordf.split(",")

    var diffx0 = parseInt(st[0])-8

    var diffx1 = parseInt(st[1])-8

    var diffx2 = parseInt(st[2])-8

    var diffx3 = parseInt(st[3])-8

    var diffx4 = parseInt(st[4])-8

    var diffx5 = parseInt(st[5])-8

    var diffx6 = parseInt(st[6])-8

    var diffx7 = parseInt(st[7])-8

    If (bparole is csword)

    {

    Jn = 1

    }

    If (m [1]! = m [3])

    {

    ml = 1

    }

    dataLine += "\r\n writing".

    }

    on the other

    {

    ml = 2

    }

    dataLine += "\r\n"+this.documentFileName. "

    + "\t" + this.getPageNthWord (i, j)

    + "\t" + pg

    + "\t" + j

    + "\t" + ml

    + "\t" + jn

    '\t st [0]' + diffx0 + '\t m [1]' + diffx1 + '\t st [2]' + diffx2 + '\t [3] st' + diffx3

    '\t st [4]' + diffx4 + '\t st [5]' + diffx5 + '\t [6] st' + diffx6 + '\t st [7]' + diffx7

    CK = 1

    }

    }

    }

    If Acrobat is reading each part of the word and the distinct words, you have a problem.

    The way I approached it in some of my tools was to check if a word ends

    with a hyphen and if so, to check if it is the last one on the line. If the two

    conditions are met, combined with the word on the next line. It comes

    do not fool proof, of course, as there are documents with columns are another

    structural elements that prevent this from working. Better than nothing,

    Although...

    However, it is also possible that Acrobat sees both as parts of

    the same word. In this case, getPageNthWordQuads() returns several

    tables of quads. As you know, this method returns an array of arrays quad.

    He is usually alone, but in principle it could be more... Something

    to check before giving up.

  • [CS3 JS] find the words in the dictionary

    I'm trying to find a way out of the words into syllables.

    The dictionary can break words, but I can't refer to the dictionary to find a Word and its setting.

    The standard I should be able to get the syllables.

    It is possible to recover the hyphenation exceptions, but I need the breaks in the custom dictionary.

    Any thoughts?

    Thank you, Kees

    [Additive] If you need only to be able to manually find the breaking points, you can use an implementation of the algorithm of Knuth-Liang. I wrote in C, and it's pretty good, ah, maybe 80% of the words. For a system purely based on rules, which qualifies as "not too bad".

    There are many free implementations; This is a http://code.google.com/p/hyphenator/ in javascript. (It is targeted on the web pages, but the basics should be transferable to your script.)

  • Find the words (wild cards) using regular expressions

    I'm testing to see if the words are present for revision 1 of a drawing of the cartridge.

    The script search the digit 1 followed by a date, a title, and 4 sets of initials.

    The number 1 is static, (date, title and original are the cards that they are different for each design).

    I use regular expressions to match the words.

    The regular expression highlighted in blue is the number 1 and the date.

    Him remains highlighted in orange does not match the title and initials.

    If anyone can help with the regular expression that is most appreciated.

    Once I got that work will add the form fields for the initials, noting only the console at this point for the tests.

    numWords = this.getPageNumWords (0);

    number of words on the page

    loop through the words on the page

    for (var j = 0; j < numWords-1; j ++)

    {/ / get the pair of words to test}

    ckWords = this.getPageNthWord (0, j) + ' ' + this.getPageNthWord (0, j + 1); test words

    Check if 1 26.05.16 THE STRENGTHENING REVISED MM SB AE GM word string is present

    If (ckWords.match(/ ^ 1\s [0-9] {1,2}.)) [0-9] {1,2}. [0-9] {2} \s\w+(\s+\w+){1,7}/))

    {

    Console.println (ckWords);

    }

    }

    You can use something like this:

    ckWords = this.getPageNthWord (0, j) + ' ' + this.getPageNthWord (j, 0, + 1) + ' ' + this.getPageNthWord (0, + 2 j) + ' ' + this.getPageNthWord (0, j + 3) + ' ' + this.getPageNthWord (0, j + 4) + ' ' + this.getPageNthWord (0, j + 5) + ' ' + this.getPageNthWord (0, j + 6);

    If (! ckWords.match (/ ^ 1\s\d {1,2} \.\d {1,2} \.\d {2} \s\w+ (?:-s + \w +) {1.8} \s([A-Z]{2})\s([A-Z]{2})-s ([A - Z] {2}) \s([A-Z]{2})$ /)) ckWords + ckWords + "" + this.getPageNthWord (0, j + 7);

    If (! ckWords.match (/ ^ 1\s\d {1,2} \.\d {1,2} \.\d {2} \s\w+ (?:-s + \w +) {1.8} \s([A-Z]{2})\s([A-Z]{2})-s ([A - Z] {2}) \s([A-Z]{2})$ /)) ckWords + ckWords + "" + this.getPageNthWord (0, j + 8);

    If (ckWords.match (/ ^ 1\s\d {1,2} \.\d {1,2} {2} \s\w+ \.\d (?:-s + \w +) 1.8 ([A - Z] {2}) \s([A-Z]{2})\s([A-Z]{2})\s {} \s([A-Z]{2})$ /))

    {

    ...

  • How to find the word already store in your computer?

    I have Word intalled on my computer but I can find it, can anyone help?

    Hello

    I suggest you follow the procedure below:

    un) Click Start, and then click all programs.

    b) in all programs, you select Microsoft Office.

    c) open Microsoft Office and select Microsoft Word.

  • Sort by or find the word long in a field of varchar2

    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    drop table event;
    create table event  (event_title_nm varchar2(1000));
    
    SET DEFINE OFF;
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('CREATING A NEW CLASS WORD FOR INDICATOR, - _IN');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('Unknown Title');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('MASAL REASON TEXT');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('Note/Attachment Modifications and Amendments');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('Installation (replaces change request  66)');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('Unknown Title');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('Installation (replaces change request  66)');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('List Item Identifier Change');
    Insert into EVENT
       (EVENT_TITLE_NM)
     Values
       ('USER_ID in WORKFLOW_TASK_ASSIGNMENT');
    COMMIT;
    I would like to choose or order by the length of the longer term in the field
    Word defined as characters continued.

    so my production for the first two returned
    event_title_nm
    USER_ID in WORKFLOW_TASK_ASSIGNMENT
    Note/Attachment Modifications and Amendments
    because WORKFLOW_TASK_ASSIGNMENT is the largest word
    and Note/attachment is the second large.

    the reason why I was trying to find thiis is that I display this value in a web page and I need to understand about the longest
    continuous word because the css will not end a text in the middle of a Word. so, it ends up pushing my div set below where I want it to go.

    Published by: pollywog on October 25, 2011 08:43

    You can order by a scalar subquery returns the max length:

    SQL> select *
      2  from event e
      3  order by (
      4             select max(length(regexp_substr(e.event_title_nm, '\S+', 1, level)))
      5             from dual
      6             connect by level <= length(regexp_replace(e.event_title_nm, '\S+'))+1
      7           ) desc
      8  ;
    
    EVENT_TITLE_NM
    --------------------------------------------------------------------------------
    USER_ID in WORKFLOW_TASK_ASSIGNMENT
    Note/Attachment Modifications and Amendments
    Installation (replaces change request  66)
    Installation (replaces change request  66)
    CREATING A NEW CLASS WORD FOR INDICATOR, - _IN
    List Item Identifier Change
    Unknown Title
    Unknown Title
    MASAL REASON TEXT
    
    9 rows selected
     
    
  • Could not find the word on my computer

    Microsoft Word has disappeared from my compupter.  I can't open documents, and I don't know what happened. Any suggestions?

    Did you download AND install?  I mean, once you have downloaded you double-click the file to install?

  • How to find the word or the text of the geometric limits...

    I have a lot of paragraphs in my document and im searching specific word in my document.

    now, what I want to know is, this particular word limits geometric.

    Try this,

    var  myString = doc.textFrames[i].parentStory.contents;
    var  myText = doc.textFrames[i].parentStory.texts[0];
    
    for(j=0;j		   
  • Firefox's search function seems to have become the HATS or caps-no specific, so that typing a word in non-caps will not find matching words with one or more uppercase letter.

    Find seems to have changed in Firefox. Before, when making a (CTRL + F) to find, research was not specific or non-specific to the caps CAPS. "In other words, if I typed in"firefox"(without ceiling), it will find the words"firefox,"Firefox", or "FIREFOX", regardless of capitalization. Now, however, the function finds will only match exact same capitalization. Totally, this undermines the usefulness of the service and is a major concern. Please fix.

    This has happened

    A few times a week

    == I noticed in during the two or two weeks.

    Make sure that the "match case" box in the find (Ctrl + F) bar is not activated.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

  • Cannot find Microsoft Word task Prog. in my computer

    Hello

    I restored my computer back to factory settings and tried to install it from the disc I have rec would be installed all except

    I'm unable to install my mircorsoft Word Task Launcher program.    Help, linda

    Hi linda,.
     
    -You installed Office application on your computer?
     
    You will find the word once you reinstall the Office application on your computer.
     

    "Your question contains all the required information necessary for us to help you. Please re - write your question, this time make sure you have all the information necessary and we will try to help. »

    See this link for more information on:

    How to ask a question

  • Where is the Word Import Wizard in FrameMaker 2015?

    Please do not post the video "import more smooth words" like this does not help anyone to find the Word import location.

    Answer my question: go to file--> import--> file--> must click 'Copy in the Document' NOT 'import of reference. " Then, click on your desired word file--> click import--> the area of unknown file type, scroll down to find "Microsoft Word" unless you have word 2007 (click on Microsoft Word 2007)--> click on convert--> click OK in the alert dialog box and then the-Word Import Wizard displays

  • Half of my Word document disappeared.  How can I find the history of the document so I can revert to a saved version the earlier?

    Half of my Word document disappeared while I was working on it.  I tried to use the back arrow to recover, but Word is closed.  How can I find the history of the document so I can revert to a saved version the earlier?

    I hope that you have a Time Machine backup that you can use to revert to a previous version.  If it is then maybe you shared the document with someone else by e-mail and get get an old copy of your sent e-mail.

Maybe you are looking for

  • How can I remove a Thunderbird e-mail account

    Created the account, but the name has changed and now cannot delete the old account.(Had also changed password on the provider's site) I want to just start clean.Thank you.

  • Can I really not import the Photos app in iMovie?

    Hello I use iMovie 10.0.8 on a Macbook Pro running El Capitan 10.11.4. I am the only user of this Mac and its running in standard mode administrator/Overlord. There is no guest user account, or anything else. I have a Nikon camera, when I import pict

  • Reading itunes through stereo problems

    I have a fairly new Airport Express that I no longer use (I use a router provided by the supplier of cable and the internet, and which is in the attic in my house).  So, I thought I could use the airport as a dedicated between my iPhone and my old st

  • WD5000LPVX WD Blue for T510?

    The WD5000LPVX being SATA 6 Gbps, can I assume it will always work with T510 but only slow down to the limits of T510 to 3 GB/s? Does anyone have any questions or concern for her. Your help is appreciated.

  • Frequency image-refreshing issue

    Hello I had this problem: I have display 3 different images in a sequence. Entire sequence 1 last second (0.3333 by image) and will be continuously repeated. During this operation, I have a few display problems - some occurs flashing white in the pho