Correct way to search for character within a string

I am trying to search for the occurrence of a "(" within a text string - unfortunately my code is reported as incorrect.
I extract the text correctly but cannot create the search statement correctly:
var mylistpgftext = pgf.GetText (Constants.FTI_String)   
for (var i=0; i < mylistpgftext.length; i++)             
    var mylistitem = mylistpgftext[i].sdata              
    var mybracketpos = mylistitem.search(/(/i)    --------------error line-----------------       
    if (mybracketpos != -1)                              
      alert(mylistitem)                                  

Hi Bob, I did not test this, but I think the problem is an unescaped character in your regular expression. Try this.
var mybracketpos = mylistitem.search(/\(/i);
Notice the backslash before the open parens that you are searching for.
-Rick

Similar Messages

  • Is there a way to search for a file within a site defined in Dreamweaver?

    I know you can search for phrases within a file's code, but
    what if I have defined an extremely large site in Dreamweaver with
    thousands of files in it and then I search for a file with the
    phrase "contact" in it? Is there a way to do this in Dreamweaver or
    is there an extension that would add this functionality?

    On Thu, 24 Jan 2008 01:50:58 +0000 (UTC), "MartinUCSD"
    <[email protected]> wrote:
    >I know you can search for phrases within a file's code,
    but what if I have
    >defined an extremely large site in Dreamweaver with
    thousands of files in it
    >and then I search for a file with the phrase "contact" in
    it? Is there a way
    >to do this in Dreamweaver or is there an extension that
    would add this
    >functionality?
    Of course
    Edit | Find and replace
    put in the "content" in the Find box - select Find in Entire
    site and
    click Find all
    ~Malcolm N....
    ~

  • Premiere Pro CC's sequence lost. Is there a way to "search" for it from outside the project?

    I seem to have lost a sequence created in Premiere Pro CC. I can't find it anywhere inside the Project bin.
    We have so many same-name, older projects (between Auto-Save, different drives and so on) that looking inside each of them would take forever.
    But we do know the name of the sequence. I am wondering  if there is a way to "search" for a sequence name from outside the project?
    Thanks

    there is a way to "search" for a sequence name outside of the project,
    but it would be a pointless waste of time.
    sequences are only saved within the project file itself!!
    We have so many same-name, older projects (between Auto-Save, different drives and so on) that looking inside each of them would take forever.
    better get at it then!
    hahahahahahahaha!!!

  • Searching for documens within dates

    I thought that my issue was a trivial one but I have not a way to resolve it.
    I have three Doc libraries containing mainly PDFs.
    I need to be able to search for files within two dates (based either on Created, Modified or a Custom Date that I defined in each library).
    Thanks

    This works for Created:
      Created>12/11/2013  Created<12/15/2013
    as does this  (both are managed properties for the same field)
      DocCreatedTm>12/11/2013 AND DocCreatedTm<12/15/2013
    This works for Modified:
      Write>12/11/2013 AND Write<12/15/2013
    You can use LastModifiedTime, Write or FileWrite as the property name.
    You can find a list of managed properties ("Manage Search Schema") in the Search admin pages of Central Admin or Office 365.
    Note that AND, OR and NOT must be in upper case.
    Mike Smith TechTrainingNotes.blogspot.com
    my SP customization book

  • Easiest way to search for a keyword in over 100 dts packages on a complex SQL 2000 server

    Hi,
    Can anyone tell me the easiest way to search for a keyword (e.g. myfilename.txt) in over 100 dts packages on a complex SQL 2000 server please. I've searched the internet for a solution, and there seem to be various third party tools available, etc. However
    ideally I would like to be able to run a block of code which returns the result within query analyser, since this SQL 2000 server is a production server and I'd rather not have to go through change management for investigation purposes.
    Kind Regards,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    See if this helps
    http://www.sqlservercentral.com/Forums/Topic169278-19-1.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Any way to search for transparent items?

    Is there any way to search for items that have an opacity of less than 100%?  I found that some of the advertisements I placed inexplicably came in at 76% opacity.  And I noticed some tiny endmark graphics came in with 0% opacity.  I don't know why.  I'm just trying to make sure I didn't miss correcting anything.
    Thanks, Phyllis

    Err, whoops. That's not going to work, because there's not a list of images in the document, only a list by page. And it's probably better to use Graphics instead, which include, e.g., PDFs.  So you probably want instead:
    var d=app.activeDocument, im=d.allGraphics, i;
    for (i=0; i<im.length; i++) {
      if (im[i].transparencySettings.blendingSettings.opacity < 80) {
        alert("Page "+im[i].parentPage.name+" has "+
          im[i].itemLink.filePath);
    And this iterates over Graphics which are the things inside containers (like rectangles). You might have the transparency applied to the container rectangle instead, in which case you'd probably need to replace allGraphics with allPageItems, except then it would fail on all the objects that don't have a transparency property [sigh...], so you'd need something (ick) like this:
    var d=app.activeDocument, im=d.allPageItems, i;
    for (i=0; i<im.length; i++) {
      try {
       if (im[i].transparencySettings.blendingSettings.opacity < 80) {
          alert("Page "+im[i].parentPage.name+" has "+
            im[i].itemLink.filePath);
      } catch (e) { }

  • Is there a way to search for new events in ical

    i am after a way to search for all new events within a certain parameter in ical....so you can see which events have dropped into your calendar recently...not sure if this is an ical feature or automator. thanks. Simon

    What Anjaneai also means to say is that Adobe has neglected to provide a Usage button for variables as they have for Advanced Actions and Library objects so that you can see exactly where they are used.  This is a BIG problem when you have a lot of variables and AAs to search through.
    By all means log an enhancement request and add your voice asking for this VERY necessary feature.

  • Is there a way to search for skipped songs in my iTunes library?

    I'd like to know whether there's a quicker way to find songs that are being skipped in my iTunes library, than simply manually checking each one.  I've been rearranging and deleting music files in Windows Explorer recently, so I know that there is a chance that I have demolished the link iTunes had to some of the files, but there's no way I can remember what all the modified albums are.  I know how to reestablish the links when I do find a song that is being skipped, but I'd love to go through the whole library and be able to find them all at once.
    The last time I did this, manually - and it seemed to take hours - I did find quite a lot of songs that were being skipped, and was able to reestablish the links or in some cases just delete the song from iTunes since i hadn't wanted it anyway.  But even then it was a little hard, since after manually checking in the quickest way I could - going through the song list and briefly playing each one for a second or fraction of a second - there was no way of sorting the songs by whether they were skipped or not.  I just had to be very careful as I scrolled, to catch each one that had the symbol indicating non-playability.
    All that to say - is there some better, automatic way of searching for non-playable, skipped songs, and is there some way of sorting them out from the rest so one can address them, and not miss any?

    Same question. Used to have an iPod. Lost it (best digital player ever), now I use other portable device. The mp3 files have their id3tag edited in the original file, but the .m4a don't!.
    Want to know someway to write the info from the library to the original .m4a files.

  • Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab?

    Is there any way to search for a term using the Firefox search field, and have the results automatically open in a new tab? When there was support for Google Toolbar, I was able to do this; now, whenever I want to search for something, I have to open a new tab to do it, and cut-and-paste my search into the search field in the new tab. I used to be able to highlight, drag, and drop something into the search field and have it automatically open in a new tab. This is enough for me to switch to Chrome . . .

    Set a preference to have searches from the Search Bar (upper right) automatically open all searches in a new tab
    #type '''about:config''' in the URL/Location/Address bar and press the Enter key
    #if you see a warning, accept it (promise to be careful)
    #Filter = '''browser.search.openintab'''
    #in the lower panel, double click the item (or right-click and choose "Toggle") to change the value to "true"
    #close the about:config tab and test
    #See:
    #*For help with opening/using about:config, also see: http://kb.mozillazine.org/About:config
    #*Also see: http://kb.mozillazine.org/About:config_entries (click on "Browser", scroll down to browser.search.openintab)
    '''Search Bar''': http://support.mozilla.com/en-US/kb/Search+bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    About Google toolbar............
    Google decided that they will no longer produce the Google Toolbar for Firefox 5 and newer version. It is best to move on to other alternatives than to try any "hacks" to the toolbar that may or may not perform in the future. Future versions of Google toolbar will only work with IE7-9. Google Toolbar is not available on any other browser, even Google's own browser.
    *http://googletoolbarhelp.blogspot.com/2011/07/update-on-google-toolbar-for-firefox.html
    *https://support.mozilla.com/en-US/kb/google-toolbar-not-compatible-firefox?s=google+toolbar&r=0&as=s
    *http://www.google.com/support/toolbar/bin/answer.py?answer=1342452&topic=15356%29
    *Google Toolbar 8 FAQ (IE only): https://www.google.com/support/toolbar/bin/answer.py?hl=en&answer=1111588
    '''''To access your Google Bookmarks visit''''' www.google.com/bookmarks.
    Alternatives:
    *http://kb.mozillazine.org/Using_Google_Toolbar_features_without_toolbars
    *https://addons.mozilla.org/en-US/firefox/addon/googlebar-lite/
    *https://addons.mozilla.org/en-US/firefox/addon/gbookmarks-google-bookmarks-fo/

  • Search for content within a PDF

    Is it possible to search for content within a PDF across a mapped drive?

    Yes. Use Edit>Advanced search. Choose All PDF Documents in and choose the mapped drive.
    They have to be searchable PDF's of course...

  • Correct way to call the character "&"

    I'm just full of questions today...
    I have a logo image called
    B&JBicycleBox_Resized_203x70.jpg  (Note the "&" character - that's where my question is coming from...)
    DW puts this as the HTML to reach it:
    <a target="_blank" href="
    http://bandjbicycle.com/ "><img alt="" width="190" height="70" src="images/sponsors/B&amp;JBicycleBox_Resized_203x70.jpg" /></a>
    (Yes, I realize the forward slashes are facing the wrong direction in the file name string...)
    And, DW also calls this a "Broken Link" ostensibly because the file ref is calling it:
    B&amp;JBicycleBox_Resized_203x70.jpg      I believe the &amp; is making it miss.
    Is it complaining because of the forward slashes and it can't find it?  Not surprisingly, it does play correctly in the browser.
    Or is there a correct way to layout the character of "&" that I'm just not finding.
    Hoibie.

    Absolutely!!!
    Perfect, Hans.  I owe you a Warsteiner....
    H

  • Easy way to search for jsp file

    is there a way to search for a file in jdeveloper. I have lots of jsp file. and I sometimes i know the full name or partial name of the jsp file, but not sure if there is a way to search for the file in JDev.
    Thanks in advnace.

    When you run the search all of the files that match your query will be listed in message log. Simply double click on the file in the message log to view it.
    --Ric                                                                                                                                                                                                                                                                                                                                           

  • Is there a way to search for and install all uninstalled fonts? I'm getting bored of opening all the files up.

    I've got a file of about 100 typefaces, which is 1000s of fonts. I want to install them all but I dont want to have to open each file and install them all individually (or in small groups).
    So is there a way to search for and install ALL uninstalled fonts in one hit?
    Cheers.

    The best solution I've come across so far is to dump all movies into a shareware app called iVI. It'll show whether each movie has subtitles or not.

  • Is there a way to search for audiobooks or books in different languages?

    Hi well my question is very simple. My native language is Spanish but I am a German citizen and I would like to read one or the other book in Spanish or listen to audiobooks in Spanish. But if I want to search for these products in my German iTunes-Store I will only get the newest German books or German audiobooks.Is there a way to search for an audio book or a book in Spanish or other languages? Thank you very much!!!

    Exactly that -- the procedure is described in the online Help: InDesign Help | Text variables
    Now every time you insert the variable named "# of potatoes", you'll see the text "50" appear (with a minimal rectangular marker to indicate it's a variable), and when you want another number of potatoes, all you have to do is adjust the text in the Variables dialog.

  • HT1657 Is there a way to search for movie rentals only? I don't want to buy movies and I'm tired of clicking on a movie only to find out its for purchase only

    Is there a way to search for movie rentals only? I don't want to buy movies and I'm tired of clicking on a movie only to find out its for purchase only?

    The best solution I've come across so far is to dump all movies into a shareware app called iVI. It'll show whether each movie has subtitles or not.

Maybe you are looking for

  • Text not displayed in the Web Report

    Hi All, I have a query where user is expecting both Key and Text to displayed in the report for the Info object "Local Product High". This infoobject has text data available. But Iam not sure why this is not getting displayed even when I select both

  • Is there a way to set up browse sequences for project with multiple TOCs and conditionalized modules

    I'm using RoboHelp 9 with WebHelp output. I've got five outputs, one of which contains Help for common functions, while the other four contain Help for licensed modules. When a user opens the Help for a licensed module, the user sees the core Help an

  • How to create and deploy a JSP which calls a BPEL process in JDEVELOPER

    Hi Gurus, I don't know how to create a JSP in JDEVELOPER which call a BPEL process. I have gone through the tutorials. Since, I am new to JDEVELOPER I need some help. 1. How to create a JSP (I know creating application and project, also I know JSP co

  • What is this? (From 4th Gen iPod Touch dock connector)

    I recently bought a 5th Gen iPod Touch which is great. My 4th gen broke a year ago and wouldn't charge. This morning I decided I'd see what's wrong with it. I shone my flashlight in the dock connector and I realised this thing wasn't connected to any

  • Photos are dark when exported from LR

    I don't know if this has come up before, didn't find it in search. When I work up a photo in LR I get it where I want. I then export to another folder. When I view that photo in any other program it is very dark, though importing and viewing in LR it