Search the web
Sign In
New User? Sign Up
barrysemacs · Barry's Emacs
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
problem with re-search-forward   Message List  
Reply | Forward Message #360 of 409 |
Re: [barrysemacs] problem with re-search-forward

You stopped with "<title[^>]*" before '>'
Maybe this will work:

(re-search-forward "<title[^>]*[>]\\([^<]*\\)")
(region-around-match 1)

Valery

--- jack <delton.shiloh@...> wrote:

>
> i'm trying to get titles of text that looks
> something like this:
>
>
> <title id="v9290060">My title here</title>
>
> the following search works beautifully and leaves
> dot immediately
> after ">":
>
> (re-search-forward "<title[^>]*")
>
>
> however, suppose i try to drag out the title like
> this:
>
> (re-search-forward "<title[^>]*\\([^<]*\\)")
> (region-around-match 1)
>
>
> i think that my region should contain "My title
> here" but it actually
> contains ">My title here"
>
>
>
>
> why? am i doing something wrong here?
>
>
> jack
>
>
>


Send instant messages to your online friends http://au.messenger.yahoo.com



Mon Apr 16, 2007 1:01 pm

valery_vi
Offline Offline
Send Email Send Email

Forward
Message #360 of 409 |
Expand Messages Author Sort by Date

i'm trying to get titles of text that looks something like this: <title id="v9290060">My title here</title> the following search works beautifully and leaves...
jack
jack_horsfield
Offline Send Email
Apr 15, 2007
6:59 am

You stopped with "<title[^>]*" before '>' Maybe this will work: (re-search-forward "<title[^>]*[>]\\([^<]*\\)") (region-around-match 1) Valery ... Send instant...
Mr Yuow Shehrer
valery_vi
Offline Send Email
Apr 16, 2007
9:18 pm

You stopped with "<title[^>]* " before '>' Maybe this will work: (re-search-forward "<title[^>]* [>]\\([^< ]*\\)") (region-around- match 1) Valery ... Best...
Valery Ivanov
valery_vi
Offline Send Email
Apr 17, 2007
7:35 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help