What function searches a string for a phrase?

I'm looking for an AS3 phrase that searches a text string for a given search term, and then returns a certain numerical value if that phrase is found.
How would I go about doing this? Is there a built-in function for this?
I'm a nube and all help is appreciated.
Thanks,
Michael

indexOf or search(), depending on how exact the string is that you're trying to match. If it's exact, use indexOf. If it's a little "fuzzy," use search with a regular expression.

Similar Messages

  • What's SAP Router String for?

    Hi,
    I can not find proper module for me to post this message, so I post it here.
    When we create a new item in the SAP logon screen , we need to specify the following parameters:
    1) System description
    2) Message server
    3) SAP Router String (optional)
    4) System ID
    5) System Number
    4) Group
    My question is, what's SAP router string for? How to define a new SAP router string?
    Because sometimes we don't need to input SAP router string, and we can still logon to the system successfully.
    So, If I need to create a new SAP router string, where to define?
    Thanks.

    Hi
    A route string describes the stations of a connection required between two hosts. A route string has the syntax
    (/H/host/S/service/W/pass)*
    It consists of any number of substrings in the form /H/host/S/service/W/pass .
    A route string contains a substring for each SAProuter and for the target server.
    Each substring contains the information required by SAProuter to set up a connection in the route: the host name, the port name, and the password, if one was given.
    Syntax for substrings:
    ·        /H / indicates the host name‑{}‑
    Note that the host name must be at least two characters long.
    ·        /S/ is used for specifying the service (port); it is an optional entry, the default value is 3299
    ·        /W/ indicates the password for the connection between the predecessor and successor on the route and is also optional (default is u201Cu201D, no password)
    In earlier Releases (<4.0A), the password entry was made one substring later and with the letter /P/.
    New: /H/saprouter/W/pass/H/targetserver
    Old: /H/saprouter/H/targetserver/P/pass
    (Here pass is the password which is checked by the SAProuter on host saprouter to set up or prohibit the connection from the source host to the target host.)
    Due to downward compatibility, the old password entry form is still possible.
    Thenaks & Regards
    Kishore

  • Search in file for exact phrase with special symbols [windows 8.1]

    When I search, for example, for 'name.txt' in file content it seems that it finds all files with 'name' and 'txt' in any order.
    Windows 7 seems to have options related to this, like 'use natural language' and 'find partial matches'. But I see nothing in windows 8.
    Please let me know if it's possible to search for exact phrase with special symbols.
    Thanks.

    When I search, for example, for 'name.txt' in file content it seems that it finds all files with 'name' and 'txt' in any order.
    You need to either use the Search tools or learn the Advanced Query Syntax (AQS) that they imply.  Actually you need to do both because the tools only help with the keyword prefix and not with the following syntax that is required to do the specific
    search that you want to do.
    So, for example, you knew that you wanted to find  name.txt  only in file (or directory?) names so you would use the  Other Properties > Name  tool  to be sure that your query had that prefix  Name:name.txt  
    In fact, that was a surprise for me just now because I thought the default syntax for Name with no other specification would be "contains" (which would be Name:~=name.txt) but apparently it defaults to  Name:~<name.txt  which means
    "begins with"  name.txt.  In fact, from an efficiency point of view that is probably a logical default.  But from a usability point of view it is terrible because it means that when users really want  Name:name.txt  to mean either
    "contains" or "ends with" they won't have a clue what to do to make those differences.
    Ref:
    http://windows.microsoft.com/en-us/windows7/Advanced-tips-for-searching-in-Windows
    FYI
    Robert Aldwinckle

  • What is best conection  string for application to connect to active standby

    I have setup a primary db and an active standby database on two servers in different city.
    Now for people to test it, what is the best tnsnames strings I should provide to them?
    Plus how do I test it?
    Thanks in advance.

    Hello;
    What you are looking at Transparent Application Failover for Data Guard. ( Way cool idea if you decide to use it )
    Example
    ernie =
    (DESCRIPTION =
        (ADDRESS_LIST =
           (ADDRESS = (PROTOCOL = TCP)(HOST = Primary.server.com)(PORT = 1521))
           (ADDRESS = (PROTOCOL = TCP)(HOST = Standby.server.com)(PORT = 1521))
           (CONNECT_DATA =
           (SERVICE_NAME = ernie)
    )The DBMS_SERVICE.CREATE_SERVICE will let create an alias for database which can be used on both servers so the end user never sees a failover.
    The rough outline is
    1. Create the service
    BEGIN
       DBMS_SERVICE.CREATE_SERVICE('ernie','ernie');
    END;
    /2. Start the service
    BEGIN
       DBMS_SERVICE.START_SERVICE('ernie');
    END;
    /3. default parameters can now be set for 'ernie'.
    BEGIN
       DBMS_SERVICE.MODIFY_SERVICE
       ('ernie',
       FAILOVER_METHOD => 'BASIC',
       FAILOVER_TYPE => 'SELECT',
       FAILOVER_RETRIES => 200,
       FAILOVER_DELAY => 1);
    END;
    /4. Finally a database STARTUP trigger should be created to ensures that this service is only offered if the database is primary.
    CREATE TRIGGER CHECK_ERNIE_START AFTER STARTUP ON DATABASE
    DECLARE
    V_ROLE VARCHAR(30);
    BEGIN
    SELECT DATABASE_ROLE INTO V_ROLE FROM V$DATABASE;
    IF V_ROLE = 'PRIMARY' THEN
    DBMS_SERVICE.START_SERVICE('ernie');
    ELSE
    DBMS_SERVICE.STOP_SERVICE('ernie');
    END IF;
    END;
    /A complete document is available here :
    http://uhesse.wordpress.com/2009/08/19/connect-time-failover-transparent-application-failover-for-data-guard/
    Best Regards
    mseberg

  • What functionality, Ops Center w/ OVM for x86?

    Greetings,
    Could you please explain what functionality Ops Center brings for Oracle VM for x86, i.e. is it anything like the OEM 12c Virtualization Plug-in? Is there any value, is it any better than an open source solution like eucalyptus???? Could you share any screen shots?
    My understanding is that Ops Center is going away, i.e. in to OEM 12c, is it worth the time to setup?
    Have you setup and used the Linux patch management functionality in Opes Center? If yes, is there any value????
    Regards,
    Edited by: Roddy Rodstein on Aug 15, 2012 11:10 AM

    You will have to configure Secure TCP (TCPS) for Oracle VM Manager (Doc ID 1456338.1)
    Your OVMM is listening on port localhost.localdomain:54321 it should be listening on *.54321.
    The only way to get it working is to configure a secure TCPS. This will allow your OVMM to listen on *.54322
    Remember when you add the OVMM asset select port 54322 and TCPS.
    Good luck.

  • What Function Module is used in a Virtual Cube

    Hi,
    where can is see what Function Module is used for a Virtual Provider(Cube)?

    double click on infocube, then in the menu choose Extras --> Information/Log status and then choose "Type/Namespace" and you will see the screen with all required information.
    Regards,
    DL

  • TestStand Lookup String for UUT Result Passed/Failed

    When I am in CleanUp group,what is the lookup string for UUT Result=Passed or Failed. That is all steps in main group passed = UUT Result=Passed. I am using Labview.

    Using RunState.SequenceFailed called from Cleanup step in TestStand sequence seems to work reliably for me but using RunState. ErrorReported does not. It seems as though the sequence context becomes invalid or something (although I get no error when accessing this property). It does not always come back true when a runtime error has occurred. Any ideas?
    Thanks, Roger Owens [email protected]

  • How do I stop firefox from redirecting every page I click on in Google search? No matter what I search for in Google when I click on it Firefox redirects me to some other search, sales, or contest page.

    How do I stop firefox from redirecting every page I click on in Google search? No matter what I search for in Google when I click on it Firefox redirects me to some other search, sales, or contest page. I have a security program running, no maleware, adware, or virus on my pc. Thanks for the help in advance.

    Sounds like a dose of search redirect malware or a redirect virus.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Search for word/phrase by ctrl+shift+F

    ctrl+shift+F
    One can enter here  the file/folder path the search for word/phrase should be made.
    But length of this control element is really limited.
    If the chosen path is very long, with lot of folder levels, longer than the control element is capable to show it,
    the path string is truncated. Truncation in its middle part.
    Nobody is able to see how exactly the path is, after it has been shortened.
    And now, please imagine that there are several similar paths on the disc.
    They differ by theirs middle section only.
    Now assume the search needs 3 hours.
    1. After 3 hours of search run user can't say which folder of all similar folders he has chosen for last search operation.
    After search completes user is no able to check, which path the search ran in.
    2. If new search in some other folder but in a folder located close to the previous one is aimed  the user
    has to follow the whole path from the disc root - job intensive task.
    Adobe Reader should use the previous search path as start point of new search path selection.
    The full-feature product Adobe Acrobat probably also affected.

    Hi vmartin01,
    I tried to check at my end and it works fine at my end.
    Regards,
    Ajlan Huda.

  • Search for a phrase in quotation marks returns extraneous results

    I'm searching for help with a specific error. I used Advanced Search to limit the search to the iTunes forums and searched for this phrase:
    "This computer is not authorized"
    The result is 199 messages, most of which do not include that specific phrase.
    I thought Search was simply ignoring the quotation marks, but when I remove them, the result is 356 messages.
    Searching this forum, I found someone had already reported this problem. I couldn't reply because that thread was opened *two years ago*, and new posts are blocked because it's archived. So I'm reopening this important issue.
    -- Ward

    Ward,
    The Hosts are aware of issues with the Search function.
    Look down the list of Topic titles below yours for the word "Search" in this Forum Feedback about Discussions .
    Or review these Search Results.
    ali b

  • Search for a phrase rather than a single word in speech analysis text?

    Is it possible to search for a phrase rather than a single word in speech analysis text?

    Did you try Apache POI?
    It's here:
    http://jakarta.apache.org/poi/

  • How do I search for a phrase in a published Help?

    This is probably a very basic question, but I've been unable
    to search for a phrase in a published Help. For instance, if I want
    to search for the phrase:
    subject information, I've tried "subject information",
    (subject information), subject NEAR information. I've received the
    same list of "hits" for all of these, but when I search for the
    phrase in any of the topics, it doesn't seem to exist.
    I am using Adobe RoboHelp HTML 6 and use the WebHelp layout.
    Thanks for any help - this is making me (and the users)
    pretty crazy.

    Basically you have two options.
    1] Use ZoomSearch as described on my site. It is low cost and
    gives much improved search options.
    2] Upgrade to RH8 as that introduced phrase searching in
    webhelp.

  • Google can't perform a picture search, and gives an error message no matter what I search for.

    This is the actual message I get when I search for images: Your search could not be completed with the requested search options. This is regardless of what I search for.

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"

  • What are  the input parameters for Function Module

    Dear Experts,
    I want to generate a Sales Tax returns report,those fields are not available in my existing Datasources.
    For that i want to write a Generic Datasource with Function Module.
    audat
    bukrs
    vkorg
    vtweg
    spart
    aurat
    auart
    netwr
    mwsbp
    kschl zedp(consition type)
    kschl zvat(condition type)
    ksch   zcst(condition type)
    matkl     material group
    Here what are the Input parameters for Function Module.
    Thanks in Advance.
    Srinivasan.

    Srinivasan-
    For creating a Generic extractor based on a FM, you first of all need to know what is going to be your structure.. i.e. what all fields you need to pull from what all tables. A functional consultant may help you identify the exact DB tables.
    Once you know them, hand over the requirement and the pdf mentioned by Krishna to the ABAP guy, he would be able to take this up further.
    Also decide 1st whether you would be using a full load or delta. There is a slight difference in the way they are built.
    Let me know how it goes.
    -Bhushan.

  • Define Search String for EBS in SAP 4.6c

    Hi All,
    I have some question for search string for EBS in SAP 4.6c. I have already done this thing in ECC 6 and work well with "target field" as account number. but in 4.6c target field account number doesn't exist. Please suggest me, if there is a same way like account number target field in 4.6c?
    Thanks in advance
    Glenn

    Hi Shanumonu,
    Thx for the answer, you save my life!
    But I have another issued. I already implement SE11 instruction, but item with wrong note to payee number from MT940 keep cleared. Do you have suggestion for me?
    Thanks,
    Glenn

Maybe you are looking for

  • NWDI in the XI Scenario - SLD

    Experts, I have created a track to transport the XI content. We have two SLD servers in the landscape. The first is used by XI and contains all the required XI business systems and the second is used only by NWDI and contains only the SC definitions.

  • Char restriction in Bex Query Designer

    Hi Gurus, Can anyone explain what is the use of the Characteristic Restriction Area in in the BEx Query designer If i set 0CALYEAR =2008 in the Char Restriction and in the column definition i set the one of the column to display data from year 2009.

  • Why is it taking SO long to export?

    I have trying to export a project for a week now. This is footage that I got from my Canon HDV camera. It is something that I got off of my DVR. Quality looks fine on my computer but by the time that I get it to a DVD it looks awful. First thing I tr

  • Problem in opening the WEB Nokia 9300

    In my new Mobile Nokia9300, When I try to open WEB I am getting the following message "unable to find the specific object" Can you please help on resolivng the problem. Thanks, Suresh

  • Disp+work.exe in J2EE stopps.

    Hi! I have problem by starting the J2EE-Engine. The disp+work.exe tells "Running but not connected to the Message Server". The r3trans -x runs without errors. Here is my dev_disp. <b>Please can someone helo with this issue?</b> Thanks! regards trc fi