Regular Expressions - How can I read the char of a text using the index?

Assuming that, this is a findWord function which searches in a text and returns the indexes that a given word is located. How to read the characters that are located some pos before each index?
Kind regards,
Vag.
public static void findWord(String type) {
        int count = 0;
        String regex = "<a word>";
        String text = readFile("data/raw/" + type + "/" + type + ".page.all.txt");
        Pattern pattern = Pattern.compile(regex);
        Matcher matcher = pattern.matcher(text);
        System.out.print("Word <a word> was found at positions");
        while (matcher.find()) {
            count++;
            System.out.print(", " + matcher.start());
        System.out.println(" at a total of " + count + " times!");
    }

Read the API docs for java.util.regex.Matcher. The matcher object exposes this data via start() and end() methods.

Similar Messages

  • I bought a used iPhone and found him email iCloud does not affect me so how can I deleted this email in order to use the device freely and privacy

    I bought a used iPhone and found him email iCloud does not affect me so how can I deleted this email in order to use the device freely and privacy
    help me please

    You can't. Return the phone for a refund, if you can, because without the previous owner's Apple ID/Password, you will not be able to re-activate the phone. It will be useless to you.
    Apple can't/won't help you with this.

  • I live in Afghanistan how can I have a free Apple ID to use the free app

    I live in Afghanistan how can I have a free Apple ID to use the free app

    Try to go into the App Store and try to download an app. When you have the option to sign in or create an Apple ID, choose to create one and you should see a 'none' option under payment.

  • How can we share and transfer data at Labview using the internet

    How can we share and transfer data at Labview using the internet
    Dr. Eugene Berman, Moran Kamilyan and Ravit Bar

    [email protected] wrote:
    How can we share and transfer data at Labview using the internet
    Check these links:
    Basic TCP/IP Communication in LabVIEW
    Data Sockets
    Integrating the Internet into Your Measurement System

  • How can I read mail attachment for making it to the payload?

    Hi everybody,
    in the following my scenario:
    I have an incoming message with attachment by the mail sender adapter using PayloadSwapBean (because of other messages I have to use the bean). I want to send this attachment by using the mail receiver adapter to fix E-mail-address keeping the FromMailAddress, the MailSubject and the FileName
    without the metadata as additional attachment.
    I have found a thread where it is explained how to handle "payload as mail attachment and dynamic filename" by java-mapping. So far so good. My question is: How can I make my attachment to be the payload? How can I read the attachment by java-mapping?
    Thanks for help.
    Reagrds,
    Sebastian Linke

    USe payloadSwapBean for this to swap your payload and attachment
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Rajesh
    Edited by: Rajesh on Feb 5, 2009 5:29 PM

  • How can we read some bytes from every line of the file

    How can we read some bytes from the every line of the file moving on to the next line
    without using the read line

    Actualiy readLine() takes more execution time
    for reading a part of line if we can do so without
    readLine() we can save some time...Well, if you knew, beforehand, the length of each line, you could use RandomAccessFile and its seek method, but, since you don't, you would have to read the rest of the line character-by-character, checking to see if it is a newline, in order to place the "cursor" at the beginning of the next line in order to read the next few characters you want.
    So, as you can see, you will need to read the entire line anyway (and if you do it yourself you also have to do the checking yourself considering all three possible end-of-line sequences), so you just as well use readLine().
    Some people may suggest Scanner and it's nextLine() method, but that also needs to read the rest of line (as evidenced by the fact that it returns it), so that is no different than the readLine() (or read it yourself) solution.

  • I can't read Or write I have been using the iPad With the accessibility icon Is there a video help them teach me how to use it more efficiently

    I cannot read or write I have been using the iPad With the accessibility icon  Is there a video to help teach me To learn how to use this accessibility more efficiently

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • HT201205 How can I connect to a bluetooth devise and use the head phones at the same time? I have a new  ipod Touch  (32GB)'and want to play through a stereo system using the headphone jack and connect to a blue tooth speaker in another room

    How can I

    Not possible, there is a physical switch inside the headphone port, when the headphone jack is plugged in the switch is open and disables the iPod speaker and Bluetooth networks. Cheers.

  • How can i read every"number" value and not only the 1st?

    in the vi only the first "number" value(from the data acquisition)is read in the small loop.how can i make every value to be read?every value must be compared with the "numeric" constant,and,if greater the led must turn on.afterwards,when a value which is less than the "numeric" is found the led must turn off.please answer or send mail to [email protected]
    Attachments:
    oximet5.vi ‏152 KB

    The more I look at your program, the less I understand it.
    Why are you setting number = number in a case if SO2 = ""? number always equals number.
    In your sequence frames 1 and 4, you have no control over which write (date or time) happens first. Just placing one function to the left of another doesn't make it happen first if your wiring doesn't create data dependency. Review the section on Data Dependency in chapter 5 of the LabView User's Manual.
    It looks you're writing to and reading from the same file using Write File and Read Lines from File.vi. Why read back data you just wrote? You have the data on your diagram. If you want to convert it from string to numeric, use a Sring/Number Conversion function from the String palette.
    On Read Lines from File.vi (which I'm not sure you even need), you should use a shift register for the start of read offset rather than a local variable for mark after read (chars.). With a shift register, you can initialize it to 0 when the VI starts. Using a local, if you restart the VI, it will try to startup from where you left off the last time, but you just opened the file for create or replace.
    In your sequence frames 2 and 3, why do you wait for the number to be less than the numeric before writing a carriage return to the file? Also, LabView has a End of Line constant which adapts to the expected value for the operating system. That's generally more flexible than a Carriage Return.
    It looks to me like you're overusing control refnums. You don't need to use a control refnum and a property node to set or read a control's value if you can wire directly to the control's terminal.
    I really don't understand what you're doing with pause and variants. I may be missing the point, but it looks like you made this much more complicated than it needs to be. Why not keep it a boolean?
    For your pause-path, you open the file but never close it. You can lose data that way. You also open it using open function 3, create new file. You'll get an error if the file already exists.
    On a general note, your diagram would be easier to read if you were more selective in how you routed your wires: you have wires on top of wires, wires running under sub-VIs, wires running in the frame of a while loop, wires running under labels.
    I think there's a temptation to overuse sequences. I don't think you need one here. As I mentioned in my earlier message, case structures and shift registers will be more useful to you.

  • How can I read a crash report?  I thought the MAC "just worked"...

    Anonymous UUID:       8476E677-4539-CF39-5AB6-617525330ECE
    Thu Dec 12 14:26:52 2013
    panic(cpu 0 caller 0xffffff80056dc19e): Kernel trap at 0xffffff80056cdfa0, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0xffffffffc0fe114a, CR3: 0x0000000001ebc047, CR4: 0x00000000001606e0
    RAX: 0x0000000000000001, RBX: 0x0000000000000001, RCX: 0x0000000000000000, RDX: 0x0000000000000003
    RSP: 0xffffff839412be28, RBP: 0xffffff839412be80, RSI: 0xffffff806208e600, RDI: 0x0000000000000001
    R8:  0x0000000000000001, R9:  0xffffff839412be90, R10: 0x0000000000000020, R11: 0x0000000000000206
    R12: 0x0000000000000000, R13: 0xffffff806208e600, R14: 0x0000000000000003, R15: 0xffffff8050384730
    RFL: 0x0000000000010046, RIP: 0xffffff80056cdfa0, CS:  0x0000000000000008, SS:  0x0000000000000010
    Fault CR2: 0xffffffffc0fe114a, Error code: 0x0000000000000002, Fault CPU: 0x0
    Backtrace (CPU 0), Frame : Return Address
    0xffffff839412bab0 : 0xffffff8005622f69
    0xffffff839412bb30 : 0xffffff80056dc19e
    0xffffff839412bd00 : 0xffffff80056f3606
    0xffffff839412bd20 : 0xffffff80056cdfa0
    0xffffff839412be80 : 0xffffff8005613bdd
    0xffffff839412bef0 : 0xffffff800561e003
    0xffffff839412bf70 : 0xffffff80056c921d
    0xffffff839412bfb0 : 0xffffff80056f3e26
    BSD process name corresponding to current thread: coreaudiod
    Mac OS version:
    13A603
    Kernel version:
    Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
    Kernel UUID: 1D9369E3-D0A5-31B6-8D16-BFFBBB390393
    Kernel slide:     0x0000000005400000
    Kernel text base: 0xffffff8005600000
    System model name: iMac14,2 (Mac-27ADBB7B4CEE8E61)
    System uptime in nanoseconds: 7973542339463
    last loaded kext at 6101677668198: com.apple.driver.AppleUSBCDC          4.2.1b2 (addr 0xffffff7f87cd9000, size 20480)
    last unloaded kext at 6188191572777: com.apple.driver.AppleUSBCDC          4.2.1b2 (addr 0xffffff7f87cd9000, size 16384)
    loaded kexts:
    com.apple.filesystems.smbfs          2.0.0
    com.apple.driver.AudioAUUC          1.60
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.driver.AppleBluetoothMultitouch          80.14
    com.apple.driver.ApplePlatformEnabler          2.0.9d1
    com.apple.driver.AGPM          100.14.11
    com.apple.driver.X86PlatformShim          1.0.0
    com.apple.filesystems.autofs          3.0
    com.apple.iokit.IOBluetoothSerialManager          4.2.0f6
    com.apple.driver.AppleMikeyHIDDriver          124
    com.apple.driver.AppleHDA          2.5.2fc2
    com.apple.driver.AppleUpstreamUserClient          3.5.13
    com.apple.GeForce          8.1.8
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.driver.AppleIntelHD5000Graphics          8.1.8
    com.apple.driver.AppleMikeyDriver          2.5.2fc2
    com.apple.driver.AppleThunderboltIP          1.0.10
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AppleIntelFramebufferAzul          8.1.8
    com.apple.driver.AppleSMCLMU          2.0.4d1
    com.apple.driver.AppleHWAccess          1
    com.apple.driver.AppleLPC          1.7.0
    com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport          4.2.0f6
    com.apple.driver.AppleBacklight          170.3.5
    com.apple.driver.AppleMCCSControl          1.1.12
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          35
    com.apple.driver.AppleUSBHub          650.4.4
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCIBlockStorage          2.4.0
    com.apple.driver.AirPort.Brcm4360          800.21.45
    com.apple.driver.AppleSDXC          1.4.0
    com.apple.iokit.AppleBCM5701Ethernet          3.6.9b9
    com.apple.driver.AppleAHCIPort          2.9.5
    com.apple.driver.AppleUSBXHCI          650.4.3
    com.apple.driver.AppleACPIButtons          2.0
    com.apple.driver.AppleRTC          2.0
    com.apple.driver.AppleHPET          1.8
    com.apple.driver.AppleSMBIOS          2.0
    com.apple.driver.AppleACPIEC          2.0
    com.apple.driver.AppleAPIC          1.7
    com.apple.nke.applicationfirewall          153
    com.apple.security.quarantine          3
    com.apple.driver.AppleUSBAudio          2.9.3f17
    com.apple.driver.AppleBluetoothHIDKeyboard          170.15
    com.apple.driver.AppleHIDKeyboard          170.15
    com.apple.driver.IOBluetoothHIDDriver          4.2.0f6
    com.apple.driver.AppleMultitouchDriver          245.13
    com.apple.kext.triggers          1.0
    com.apple.iokit.IOSerialFamily          10.0.7
    com.apple.driver.DspFuncLib          2.5.2fc2
    com.apple.vecLib.kext          1.0.0
    com.apple.iokit.IOAudioFamily          1.9.4fc11
    com.apple.kext.OSvKernDSPLib          1.14
    com.apple.iokit.IOAcceleratorFamily          98.7.1
    com.apple.nvidia.driver.NVDAGK100Hal          8.1.8
    com.apple.nvidia.driver.NVDAResman          8.1.8
    com.apple.iokit.IOSurface          91
    com.apple.iokit.IOBluetoothFamily          4.2.0f6
    com.apple.driver.AppleThunderboltEDMSink          1.2.1
    com.apple.driver.X86PlatformPlugin          1.0.0
    com.apple.iokit.IOAcceleratorFamily2          98.7.1
    com.apple.AppleGraphicsDeviceControl          3.4.12
    com.apple.driver.AppleSMC          3.1.6d1
    com.apple.driver.AppleSMBusPCI          1.0.12d1
    com.apple.driver.IOPlatformPluginFamily          5.5.1d27
    com.apple.iokit.IOBluetoothHostControllerUSBTransport          4.2.0f6
    com.apple.driver.AppleHDAController          2.5.2fc2
    com.apple.iokit.IOHDAFamily          2.5.2fc2
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.iokit.IONDRVSupport          2.3.6
    com.apple.driver.AppleSMBusController          1.0.11d1
    com.apple.iokit.IOGraphicsFamily          2.3.6
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.6.0
    com.apple.driver.AppleThunderboltDPOutAdapter          2.5.0
    com.apple.driver.AppleThunderboltDPInAdapter          2.5.0
    com.apple.driver.AppleThunderboltDPAdapterFamily          2.5.0
    com.apple.driver.AppleThunderboltPCIDownAdapter          1.4.0
    com.apple.driver.AppleUSBMergeNub          650.4.0
    com.apple.driver.AppleUSBComposite          650.4.0
    com.apple.iokit.IOUSBUserClient          650.4.4
    com.apple.driver.AppleThunderboltNHI          1.9.2
    com.apple.iokit.IOThunderboltFamily          2.8.5
    com.apple.iokit.IO80211Family          600.34
    com.apple.iokit.IOEthernetAVBController          1.0.3b3
    com.apple.driver.mDNSOffloadUserClient          1.0.1b4
    com.apple.iokit.IONetworkingFamily          3.2
    com.apple.iokit.IOAHCIFamily          2.6.0
    com.apple.iokit.IOUSBFamily          650.4.4
    com.apple.driver.AppleEFINVRAM          2.0
    com.apple.driver.AppleEFIRuntime          2.0
    com.apple.iokit.IOHIDFamily          2.0.0
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          278.10
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.security.TMSafetyNet          7
    com.apple.driver.AppleKeyStore          2
    com.apple.driver.DiskImages          371.1
    com.apple.iokit.IOStorageFamily          1.9
    com.apple.iokit.IOReportFamily          21
    com.apple.driver.AppleFDEKeyStore          28.30
    com.apple.driver.AppleACPIPlatform          2.0
    com.apple.iokit.IOPCIFamily          2.8
    com.apple.iokit.IOACPIFamily          1.4
    com.apple.kec.pthread          1
    com.apple.kec.corecrypto          1.0
    Model: iMac14,2, BootROM IM142.0118.B00, 4 processors, Intel Core i5, 3.4 GHz, 32 GB, SMC 2.15f2
    Graphics: NVIDIA GeForce GTX 775M, NVIDIA GeForce GTX 775M, PCIe, 2048 MB
    Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    Memory Module: BANK 0/DIMM1, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    Memory Module: BANK 1/DIMM1, 8 GB, DDR3, 1600 MHz, 0x859B, 0x435438473353313630424D2E4D3136464444
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x111), Broadcom BCM43xx 1.0 (6.30.223.154.45)
    Bluetooth: Version 4.2.0f6 12982, 3 services, 23 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en1
    Serial ATA Device: APPLE HDD ST1000DM003, 1 TB
    USB Device: BRCM20702 Hub
    USB Device: Bluetooth USB Host Controller
    USB Device: FaceTime HD Camera (Built-in)
    USB Device: Scarlett 2i2 USB
    Thunderbolt Bus: iMac, Apple Inc., 23.10

    don't know if this means anything, but the memory test finished:
    Rember Test Results
    All tests passed!
    Total built-in memory: 32 GB
              This is the total amount of physical memory that the computer has installed.  If this figure is not showing the correct amount of memory there may be a problem with one or more installed DIMMS.
    Available memory: 29337 MB
              Available memory is the amount of physical memory that is currently not in use by any other processes.  All available memory will be used for testing when the "All" option is selected. To increase the amount of available memory, you can restart your computer before testing. If you are familiar with the command line (CLI), you can run memtest (the core of Rember) in single-user mode. See Rember help, or http://www.memtestosx.org for more information.
    Requested amount: All MB
              The total amount of memory requested for testing by the Rember application. Not all requested memory can be allocated for testing. See information on "Available memory" for more information.
    Memory allocated for testing: 29337 MB
              This is the total amount of memory that memtest was able to allocate for testing.  See "Available memory" section for more information.
    Loops selected: 1
              Total loops selected by user for testing. All loops should complete when testing is successful. Test failure when the "Continue on Error" preference is selected will cancel tests before this number of loops has been completed. Users can also cancel testing before this number is reached.
    Loops completed: 1
              Total loops completed by memtest.  Note that the Rember is not always able to identify how many loops ran.  If there are discrepancies between this and the loops selected, the log should be examined to determine exactly how many loops were performed.
    Total execution time: All tests passed!  Execution time: 6911  seconds
              This is the total amount of time that it took to execute the selected tests. Execution time may vary from system to system, and is provided as a guide for determining how long users can expect tests to run based on the amount of memory installed on the system.
    Testing start time: 2013-12-13 00:59:56 +0000
    Testing end time: 2013-12-13 02:55:13 +0000
    Rember version: 0.3.7b Memtest version: 4.22

  • HT1212 I just updated my Ipad 2 to IOS7, now it is asking me for a passcode. I never set a passcode on my Ipad, so how can I enter a passcode. I tried using the OIS7 passcode I use on my Iphone  and it did not work and now my Ipad is disabled

    I just updated my Ipad 2 to IOS 7, now it is asking me for a passcode. I never set a passcode on my Ipad, so how can I enter a passcode. Earlier today I upgraded my Iphone 5 to IOS 7 and it asked me to set a passcode, which now works fine on my Phone. I  tried using the OIS7 passcode I use on my Iphone 5 and it did not work and now my Ipad is disabled. Both devices are on icloud and share the same apple id. The Ipad screen says slide to set up but then there is a prompt for passcode, not for setting up passcode

    I called Apple Support and a supervisor helped resolve this for me on my iPad. I suggest calling them for help as this is obviously an issue with the iOS 7 update - she helped me without charge. I could be missing something in my upcoming description, so do not take this as complete - call them.
    I had to update iTunes on my Mac Air to the latest version, and I had an iCloud backup from the day I updated to iOS7. Have iTunes open but do NOT connect your iPad yet. Shut down the iPad. Then press/hold the Home key on the iPad while you connect the USB from the iPad to the computer (an image of the USB cable appeared on the iPad). Follow the prompts in iTunes to restore and then backup using iCloud. When the iPad rebooted again to do the backup install, I got the same pass code issue and iTunes would not recognize the iPad without entering a pass code. I disconnected the iPad, turned it off, pressed the Home key while connecting the USB cable. When I did the restore and backup from iCloud the second time, it worked without the pass code issue occurring.

  • How can i read data in pagemaker file (PMD) using Visual Studio C# NET ?

    I have bunch of data in .PMD file (Page Maker Document). Which contains mathematical equations and chemistry formulas, I am a .NET developer, and I am writing code for one of the educational learning system. For that I need to read and store mathematical equations/ chemistry formulas from .PMD file into database then display on the browser page.
    Is it possible to read data from .PMD file using C#.NET, do I need to use any external libraries. How can I import .PMD to MATHML (Mathematical Markup language)?
    Any existing examples for C#.NET?
    Please help me regarding this.

    I can't claim to know much about visual C# Net, but I do know a bit about pagemaker. It really can't handle equations. there are a few work arounds involving things like baseline shifts and multiple text boxes, but generally equations were created in different programs and placed in pagemaker in picture or eps files. Either way the chances of extracting usable data out of pagemaker is very slim.
    Jay

  • HT204053 I have forgotten my questions and answers for my password. How can I replace them. I want to use the same password I have ?

    I was on the phone for almost 2 hrs. yesterday because I had so many passwords I couldn't remember the one I used for itunes. The fellow helped me get it all straightened out but it still wouldn't let me get in because I couldn't remember the questions and answers. He was going to take care of it at that end and told me to wait 24 hours. So I'm at it again. I got into itunes but when I try to retrieve my previous apps,it wants me to put my password for that as well and then I'm in the situation with it not accepting my password so when I try to change my password it then wants me to answer the question and answer so now I'm thinking I have more than a seizure disorder and it's driving me to the point of no patience. Can you help?
    Anna

    Chick3597 wrote:
    Regardless of apple updating something or another. I have no need for the additional questions and really don't want to allow them to bully me into compliance.
    You may have no need for additional but Apple does. They don't want your iTunes account to be hacked and then go complaining to them that their security procedures are not up to standards.
    Chick3597 wrote:
    So how can I continue in the good old fashioned way?
    Its really absurd to even ask this in light of the information that you have been given already. The "old fashioned" way is gone. It's Apple's store, Apples's rules and IMO - its a wise decision on Apple's part.
    You do not have to comply at all, but you will not be able to purchase from iTunes anymore, but nobody is going to force you to do something that you do not want to do.

  • How can you develop photo galleries with multiple pages using the web module?

    Going through the web module I can see there are many options for developing a web page with a single collection of photos.  How can you develop a web site with multiple pages containing different categories of photos using the Lightroom web module?

    This thread will give you several ideas.
    Re: How do you embed a gallery into an existing website?

  • How can I get my '010 Macbook Pro to use the entire HDTV screen?

    I have both my late '09 MacMini and mid-'010 Macbook Pro connected to my HDTV with HDMI cables.
    The Displays pane of System Preferences on the Macmini gives me the options of 1080p and 60 hZ, which use all of the HDTV screen.
    However, on the Macbook Pro I only get resolution options.
    The HDTV (Sharp Aquos 46") gives me only Stretch, SuperStretch, Dot-by-Dot, and Zoom options. I use Dot-by-Dot because
    the others, while the use all of the HDTV's horizontal space, cut off either the top of the display (Title Bar), the bottom (Dock), or both.
    Is there any way for the Macbook Pro to use all the HDTV's "real estate" like the MacMini does?

    If your MBP can use it, I highly recommend the following adapter:
    http://store.apple.com/us/product/H1824ZM/A/Moshi_Mini_DisplayPort_to_HDMI_Adapt er
    I'd be very surprised if it doesn't have a capable mini DisplayPort, since my not-quite-one-year-old MBP does.  But to be sure, first make sure you've got a mini DisplayPort, then scroll down on the page above and find a user comment titled "How you know if it is supported w/o guessing."

Maybe you are looking for