help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string searching and saving results to a variable


From: ken
Subject: Re: string searching and saving results to a variable
Date: Thu, 17 Feb 2011 05:51:54 -0500
User-agent: Thunderbird 2.0.0.24 (X11/20101213)

On 02/15/2011 06:33 PM Perry Smith wrote:
> On Feb 15, 2011, at 5:15 PM, ken wrote:
> 
>> ....
>>
>> <h3>Section 4</h3>
>>
>> but it could be multiple lines like this
>>
>> <h3 class="newest-chapter-section-type" align="center">On
>> the origins of elisp confusion</h3>
>>
>> It could even be three or four lines long.  Also, the line(s) could be
>> indented and so have unwanted white space in the first several columns.
>>
>> ....

Thanks, Perry.  That got me through that step.

Next little thing: I want to check if the initial heading tag might
*already* contain the "name" attribute.  So with the point at the start
of that tag, I'd do something like this:

(re-search-forward
"name=\"\\|name[whitespace]=\"\\|name[whitespace]=[whitespace]\""
end-heading nil nil)

Is there a shortcut way in elisp to express any and all combinations of
whitespace...?  if not, how to do this?


tia,
ken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]