Grep expression for specific search within Brackets

Hello,
I did a search and found many topics for searching within brackets, but wasn't able to find anything to search for specific characters/quotation within brackets.
Note: The forum image uploader wasn't working for me so I embedded it to the topic. Hopefully it shows up for you. (http://cl.ly/1H42302P2x3c1Q3P2a42)
For the Brackets and words within, i use:     (\[).+?(\])
and have it them to a different font.
For my project i need the quotations to be a different color and nothing else.
These are the ones i'm trying to add to an expression:      '|"|;|,
Any help is very much appreciated. I've been trying many arrangements with no luck. Thanks!

It's not possible to search for your punctuation inside parentheses only. (FYI, that needs a positive lookbehind of variable length, and that's not possible.)
But the hint to get it done is right there:
function(){return A.apply(null,[this].concat($A(arguments)))}
For the Brackets and words within, i use:     (\[).+?(\])
and have it them to a different font.
Simply search for your set
only in that particular font.

Similar Messages

  • Microsoft Exchange 2013 eDiscovery - specific search query: looking for specific hyperlinks within e-mails content/body

    Dear all:
    I am currently using the MS Exchange 2013 eDiscovery feature with the objective to identify which of my users have received emails containing specific hyperlinks (e.g. http://website1/webroot/file.zip, http://website2/webroot/file.zip, etc.) from an unknown
    sender.
    To this end, I have been creating an eDiscovery on-hold case looking for a specific search criteria in all mailboxes.
    As the search criteria, I have tried many options but was unable to obtain satisfying results: I know I am missing some e-mails from this specific search (I checked manually). I have notably tried the following search queries (with and without the body:
    search operator, with and without double quotes, etc.)
    body:http://website1/* OR body:http://website2/*
    body:"http://website1/*" OR body:"http://website2/*"
    body:"website1*" OR body:"website2*"
    body:"*website1*" OR body:"*website2*"
    When replaying these queries on my local Outlook client, everything works fine and I get results as expected.
    However, when going through the ECP eDiscovery feature, I am missing some results.
    Therefore, I am looking for any advice on what Exchange eDiscovery KQL query I should use to identify all emails containing, in their message body, a list of specific hyperlinks/URLs.
    Many thanks in advance for your help.
    S.

    Alas I do not know the answer to resolution via ECP and like you I have found it to be a bit maddening to use ECP for discovery tests Ive done when comparing results with our DigiScope product.  I know we can accomplish what your looking to do via Regular
    Expression but again that's with a 3rd party tool. 
    One thought is I suppose it could be an indexing issue with the DB, so perhaps rebuilding the index would help?
    If you do get it working I would love to know the resolution since many of my tests with ECP have left me yelling at the screen.  When its works its cool when not well...
    Search, Recover, & Extract Mailboxes, Folders, & Email Items from Offline Exchange Mailbox and Public Folder EDB's and Live Exchange Servers or Import/Migrate direct from Offline EDB to Any Production Exchange Server, even cross version i.e. 2003
    --> 2007 --> 2010 --> 2013 with Lucid8's
    DigiScope

  • GREP Expression for Varying Text

    I have an index in which I'd like to Find/Change all the entries with a character style, but stop the GREP expression before the tab, leader, page numb. They vary though. Here are 3 indexed examples:
    A16T-PVUNL-3
    A-100-90-3CT-300
    B-20-22-50-3/4 shank
    Is there any way to constrict this to just the characters and digits, then stopping before the tab? I achieved it in another index whose entries are 7-digits only with this expression: ^(\d+)
    The return constricted it so that search did not find the page numbers after the tabs.
    Thanks.

    http://help.adobe.com/en_US/indesign/cs/using/WSE33E49F9-94CE-4043-AA51-4761408A63F4a.html #WS6F1E524C-8F74-4331-A813-33D08F983E94 is the official help page.
    You'll find a bunch of other resources listed here: http://community.adobe.com/help/search.html?searchterm=Nested+Styles&q=Nested+Styles&lbl=i ndesign_product_adobelr&x=0&y=0&area=0&lr=en_US&hl=en_US

  • [SOLVED] pacman: grep database for specific packages?

    $ pacman -Ss zsh
    extra/grml-zsh-config 0.9.1-1
    grml's zsh setup
    extra/zsh 5.0.2-4 [installed]
    A very advanced and programmable command interpreter (shell) for UNIX
    community/zsh-lovers 0.8.3-2
    A collection of tips, tricks and examples for the Z shell.
    community/zshdb 0.08-2
    A debugger for zsh scripts.
    $ pacman -Ss zsh | cut -s -d/ -f2 | grep '^zsh ' | cut -d' ' -f1
    zsh
    I'm trying to grep pacman output for a specific packages (not just zsh) and receive only the package name as it was passed to pacman as a output (if it exists in the repos that is, otherwise blank / exit 1). The above command works fine in the terminal but when I'm trying to use it from a bash script it only returns blanks. How come?
    Simplified version of the script:
    tank (zsh ksh)
    for x in ${tank[*]}; do
    echo $x
    present=$(pacman -Qs ${x} | cut -s -d/ -f2 | grep '^${x} ' | cut -d' ' -f1)
    echo $present
    done
    I expect it to return output of a pacman command in the second echo (or blank if there's no packgae like that).
    edit: change of title.
    2nd edit: added simplified script.
    Last edited by thoajdzm (2013-11-16 14:34:59)

    Raynman wrote:
    And consider using
    $ pacman -Ssq '^zsh$'
    instead of that pipeline.
    Brilliant! Much leaner. However it still doesn't work from a script:
    tank=(zsh)
    for x in ${tank[*]}; do
    echo $x
    present=$(pacman -Ssq '^${x}$')
    echo $present
    done
    Second echo returns blank... Am I quoting something wrong?

  • How to create an InDesign Grep Expression to specific words

    I have a long list of congratulations wishes all following a certain pattern. How can I create a grep style with the following sequence:
    Congratulations to [name] upon.....
    The first two words of the paragraph are always: Congratulations to
    Followed by: name
    Followed by: upon.... (then continues with the rest of info)
    There's a general paragraph style to the paragraph, let's call that "body". A  character style, let's call "bold", should be applied to the first word, then skip the word "to", apply the "bold" character style again to the name (however long that may be), and stop at the word "upon". Keep in mind that the word "to" is mentioned again later on, so I wouldn't want to use an expression with all words "to", unless can be specified only the first instance.
    I'm new to GREP, but have figured out so far that the following will give me the applied character style to the first word: ^Congratulations
    Thanks a lot in advance to whoever can help me out here.

    Fabulous guys! Thanks Eugene and Peter. It works great. All I did was add the "nested style > apply to first word" to get the first word bold. I greatly appreciate your assistance.
    One more scenario that I need to get done, if you don't mind. Thanks.
    This one is quite similar, but a bit different:
    Congratulations to [name] son of [names] upon....
    The first two words of the paragraph are always: Congratulations to
    Followed by: name
    Followed by: son of
    Followed by: name
    Followed by: upon.... (then continues with the rest of info)
    Similar as before, but now I need both names [after the word "to" and after the words "son of"] to have the style applied, in addition to the word "Congratulations".
    Thanks for your help.

  • Help building a grep expression

    hello,
    pls can someone help me build a grep expression for a dictionary:
    abcdef
    hjtoku
    yghmns
    I need an expression that would find in each word where the underline starts, and put, lets say, an asterisk there:
    abc*def
    hjto*ku
    ygh*mns
    thank you in advance!

    Underlines are a character attribute, not a glyph, so there's not a lot of complexity to this. To find underlined characters search for .+ and in the find format section set the basic character attributes to underlined. Understand that this will find underlined characters anywhere, even at the start of the word. If you don't want that it's a lot more complicated and I haven't figured it out myself, yet.
    To add the asterisk change to *$0
    This will add the asterisk, but it will also be underlined, so you need to run a second search for \* (you need to escape the asterisk character in the search field to find a literal *) with the underline attribute and change to nothing, but change the attribute in the change format to no underline, or if you wanted to remove the other underlines as well it could be done in the first step by removing the underline attribute in the change formatting.
    Peter Kahrel has a nifty script for chaining find/change queries to run in one step.

  • GREP Expression Needed

    I'm reposting this here, hoping some genius scripters will know more than the designers ---
    I've scoured the websites and have been trying to figure out the correct GREP expression for what I'm trying to achieve, but to no avail, so alas I am posting this in hopes of ending my misery.
    I want to add an italic character style to the names of Naval ships (USS xxx xxx) in my book.  I want to italicize the name, but not the 'USS'. Any ideas?
    Thanks a million.
    ~Laurie

    Here you go (needed a break). Write the names in a text file, one name per line, and save it in the scripts folder using the name uss_names.txt. The first line in that file must be the name of the character style you want to use. If that style doesn't exist, the script creates it.
    Peter
    if (app.documents.length == 0) exit ();
    // Read the text file
    ship_names = get_list ();
    // Create character style if necessary
    if (app.documents[0].characterStyles.item (ship_names[0]) == null)
        app.documents[0].characterStyles.add ({name: ship_names[0]});
    app.findGrepPreferences = app.changeGrepPreferences = null;
    app.changeGrepPreferences.appliedCharacterStyle = app.documents[0].characterStyles.item (ship_names[0]);
    for (i = 1; i < ship_names.length; i++)
        app.findGrepPreferences.findWhat = "(?<=USS\\s)" + ship_names[i];
        app.documents[0].changeGrep ()
    function get_list ()
        var f = File (app.scriptPreferences.scriptsFolder + "/uss_names.txt");
        if (f.exists)
            f.open ("r");
            var temp = f.read ()
            f.close ();
            return temp.split (/[\n\r]/);
        else
            alert ("Can't find uss_names.txt.");
            exit ();

  • How can I adjust the search bar to search within a specific website?

    I used to use Chrome (still miss it a little bit), but Firefox has continually grown on me.
    One feature I do miss from Chrome being able to search within a specific website from the search bar. For example, I was able to type in amazon.com, then pressing tab, and type in a specific search term, such as "The Terminator." When I pressed enter after typing "The Terminator," Chrome would automatically take me to Amazon's search results for "The Terminator."
    And it wouldn't just be Amazon either; pretty much any site that had a searchable database, Chrome would be capable of utilizing this feature. Is there any way to replicate that in Firefox?

    hello crachor, probably keyword search can offer you a similar functionality in firefox: [[How to search IMDB, Wikipedia and more from the address bar]]

  • When I'm in a playlist, how can I search for a song within it

    I can only search my entire library whereas I used to be able to search within the playlist. I'm sure it can still be done.

    Hi Busygirl, it sounds as though Firefox is handing that email off to Outlook Express, or another program that isn't set up.
    If you want to use a Gmail or Yahoo mail account for sending the link, you can set that up as follows:
    orange Firefox button (or Tools menu) > Options > Applications
    In the search box above the list of file types, type or paste '''mailto''' and pause while the list is filtered. In the drop-down on the right, choose Gmail or Yahoo.
    If it's a different service, and it's not already on that drop-down, then there is a setup step you need to do first. That's going to be different for each service... let us know which one.

  • How do I search for adjacent words within MS WORD?

    I am new to Mac. I need to search WITHIN MS Word Documents for specific phrases. Example: Jim is a good boy. Spotlight will find all documents containing those 5 words, but not those 5 words together. There has to be a way...
    MacBook   Mac OS X (10.4.8)  

    First, thanks, I did. My naive take is that new plug-ins wouldn't be required.
    Second - I don't know about Google finding every document, but it returns some pretty impressive results, and fast (so long as Google indexes the page in the first place of course). You've never used this feature? I do it all the time when I want to see if there's an internet version of a document I have in my hand.
    Here's a random example the feature in action - I went to boingboing.net and snagged a phrase from the October archives: "You should give props to BabyStyle.com for the blue octopus costume". Here's the link to the October page:
    http://boingboing.net/200610_01archive.html
    and here's the link to the successful Google search:
    http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&client=firefox-a &rls=org.mozilla%3Aen-US%3Aofficial&q=%22Youshould+give+props+to+BabyStyle.com+for+the+blue+octopuscostume%22&btnG=Search
    Pretty impressive - the internet is a big place!
    Thirdly, there was a program written for OS 9 called "Gopher" that did just that. It was pretty handy. Come to think of it, it may have been written for System 8! It vanished from publication before there was even a web for it to be distributed on, and when I switched to OS X, it wasn't working well under 9. Of course outside of the personal computing realm, there are well known database programs like Lexis and Nexis that perform exact phrase searches on their databases, which are pretty extensive (at least as large as most document collections on most personal computers, I'd venture). In fact if you've never used those programs they have some pretty powerful functions, like searching for any occurrence of a word within so many words of a second target word.
    I'll give you a couple of examples of where phrase searching might come in handy. Suppose I have a collection of e-mails or correspondence (I guess we all do) and I want to find the one in which I facetiously repeated the punchline to the chicken joke - "to get to the other side". (You have to grant I might have a reason for wanting this particular e-mail, okay?) Of course if I search on "get", "other" and "side" I may wind up with four or five hundred results; those are pretty common words. That doesn't help me much. A phrase search,however, will yield, I dunno, three or four documents. Bingo.
    Or, here. I work in an office creating documents all day long. I've been working in this office, on PCs, for 16 years. That's a lot of documents. I may create three dozen or more on a single subject. The documents are all on the same subject and all pretty much have the same words in them. Maybe I've got a single paragraph printed from one of them and want to find the source document. A simple word search will yield back 80% of the lot. A phrase search typed in from the paragraph is almost certainly unique, however, and will give me my document in a blink.
    (Um, I'd have to move all the documents to a Macintosh to do this, but you get the point I hope.)
    Spotlight says it finds "anything anywhere" on your computer. I would use a feature like this *all the time*. Why shouldn't it be able to do it?

  • Search entire library for specific keywords?

    Maybe I'm missing something, but I can't seem to find a way to search my entire Aperture 3 library for specific keywords.  It seems that I have to first select a project or album within the "Projects and Albums" section.  If there is indeeed no way to search the entire library, that seems to be a huge oversight on Apple's part. 

    An addition hint that I found extremely helpful for any set of Images that include many Keywords:  "{Option}+click" will unselect all and select the clicked Keyword.  There is no other way I know to unselect Keywords in the Filter HUD (though one can easily delete the Rule and add another Keyword Rule).
    Note that Aperture cleverly shows only the Keywords present in the selected Images (an Album with five Images will likely show far fewer Keywords than the container "Photos").
    Projects View is, imho, extremely useful -- but it is not a good place to search for Keywords (I'm guessing this is where the OP tried to search).  It's a great place to sort and filter Projects -- which alleviates the need to organize one's Library by date (date sort is built into Projects View).

  • Search files for specific lines of data

    Hi all, I have a problem that I hope someone can help me with.
    I need to find a way to search for specific lines of data on a file.
    Here's the setup.... say for example I have 10 files, each filled with log files containing data like the date they were created and also certain information they were monitoring.
    From a Java applet, a user types in information that they want (for example, only lines that were created between 2002/04/04 and 2002/05/05 and only ones tagged with "Caution"). I need a way to grab all of those line from each of the files, without having to open each file, read each line and check for each search request. Instead, I want to simply grab all of the data at once, or at the very least, grab all of the data from the first file, then grab all of the data from the second file etc, without having to search each individual line. (the reason I'm hoping for a command like this is because there will eventually be thousands of files that need to be searched, and opening each one, and then search each line one by one would take too long.
    Sort of like a grep command in Linux. Does Java have a similar command?
    Any information or samples would be greatly appreciated!

    I don't know how much control you have over the files that you have to search.
    Searching XML files would be a lot easier because XPATH queries will work exactly like SQL... The only problem being if your files are not XML at all.
    If you have control over the format of these files you are trying to search, then try XML... else you might have to write a batch utility that runs every N seconds and converts data in these files to XML format files conforming to a specific format and then your applet could query the XML files.
    There will be a small concurrency issue there, though; As there will be at least some time consumed by the thread.

  • How to use an iPad 2 for web search (via 3G only) while using AirPrint via Airoprt express wifi (NOT connected to the internet)

    Heres the setup: I have an IOS 7 iPad 2 that I want to use 3G only for web searches/ emails while using an Airport Express generated wifi bubble (without any connected internett) to print web seraches via airprint to a wifi printer.
    The problem: the ipad deafults to searching via the AE's wifi and vainly waits for the non existent interent to connect. It ignores the available 3G internet.
    The workaround: a) turn off the AE's wifi, search the web via 3G b) once I have something to print, turn the wifi back on and print via airprint and the AE's wifi to the printer.
    The question: Is there a way to turn off the AE's internet access. Using Airport utility, I have tried setting Bridge mode and static IPs to no avail. There is no turn-the-internet-off tick box.
    In the ideal setup I would like the ipad 2 to search the web via 3G only (straight away versus waiting vainly for the AE to find it!!) and then print the results via the AE's wifi and airprint without having to toggle wifi on and off all the time.....
    Thanks in advance,
    Bill...

    Hi,
    You can consider to configure the Forefront TMG Arrays or NLB.
    Planning for Forefront TMG server high availability and scalability
    http://technet.microsoft.com/en-us/library/dd897010.aspx
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • How do I search for a word within a web page

    I would like to be able to do a search for a pecific within the page currenly viewed in the browser. Is there a way to do that in Firefox?

    Hi JossefPerl,
    Searching on a page is actually really easy. You can just hit ''CTRL + F'' to use the search feature. You should take a look at the Knowledge Base article on [[Searching within a page]] for more information.
    Hopefully this helps!

  • Efficient searching in a large XML file for specific elements

    Hi
    How can I search in a large XML file for a specific element efficiently (fast and memory savvy?) I have a large (approximately 32MB with about 140,000 main elements) XML file and I have to search through it for specific elements. What stable and production-ready open source tools are available for such tasks? I think PDOM is a solution but I can't find any well-known and stable implementations on the web.
    Thanks in advance,
    Behrang Saeedzadeh.

    The problem with DOM parsers is that the whole document needs to be parsed!
    So with large documents this uses up a lot of memory.
    I suggest you look at sometthing like a pull parser (Piccolo or MPX1) which is a fast parser that is program driven and not event driven like SAX. This has the advantage of not needing to remember your state between events.
    I have used Piccolo to extract events from large xml based log files.
    Carl.

Maybe you are looking for

  • Shot one frame short after import

    I'm having a weird problem with 10bit uncompressed quicktimes imported into FCP being one frame shorter then they should be. I'm working with OS 10.4.11, FCP 6.0.3, Quicktime 7.4.5. The shots were originally shot on 35MM film then telecined at 1080 2

  • Transaction log used 200GB unable to shrink

    Hi All, Currently I am facing diskspace(0 KB available) issue in one of my application server.. When I checked SQL server SMS_UDB (is our DB name) containing 70GB but SMS_UDB_LOG (Transaction log) Containing more than 200GB. When I checked the disksp

  • Rights Management problem (http / https)

    How do I fix the error: "You are attempting to connect to an adobe livecycle rights management server using an insecure protocol." Is there a way to leave the server as http and change the policies to not ask for https protocol? I've tried changing t

  • IMovie 11 will not show my project library after I sent it toiDVD

    This is the second time that I lost my iMovie project Librarys. Apple support helped me get it back last week. Now, I can't find my project library. That would include all of my project librarys. I did download the latest up dates for this imovie. Al

  • Bottom case screw not sitting flush

    One of the screws on the bottom of my MacBook pokes out about 1mm from the bottom surface of the laptop when tightly screwed in. This causes it to rub against uneven table surfaces and has caused it to put a scratch in one of my wood tables. Anybody