From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Daniel Martins" Subject: Regexp problem: org-mode and remind integration Date: Wed, 14 Jan 2009 00:05:05 -0200 Message-ID: <6ac505ad0901131805j2cb519c9i680e3a783422e753@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1009773410==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LMv80-0001OG-NB for emacs-orgmode@gnu.org; Tue, 13 Jan 2009 21:05:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LMv7z-0001Ni-D1 for Emacs-orgmode@gnu.org; Tue, 13 Jan 2009 21:05:08 -0500 Received: from [199.232.76.173] (port=33383 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LMv7z-0001Nf-AW for Emacs-orgmode@gnu.org; Tue, 13 Jan 2009 21:05:07 -0500 Received: from wf-out-1314.google.com ([209.85.200.172]:14709) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMv7y-0000Ed-OY for Emacs-orgmode@gnu.org; Tue, 13 Jan 2009 21:05:07 -0500 Received: by wf-out-1314.google.com with SMTP id 28so299070wfc.24 for ; Tue, 13 Jan 2009 18:05:05 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Olaf Dietsche Cc: bastien.guerry@ens.fr, Emacs-orgmode@gnu.org --===============1009773410== Content-Type: multipart/alternative; boundary="----=_Part_114438_29630115.1231898705361" ------=_Part_114438_29630115.1231898705361 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry for the confusion, I did try the empty regexp as suggested and it "worked" ie no problem appeared. My problem is to find a regexp for timestamps outside DEADLINE: and SCHEDULE: rows In other words, given three variables A B C with regexps. If I have a regexp given by variable A and I want to find a text which satisfies A but DO NOT satisfy B nor C how can I write uch regexp? 2009/1/13 Olaf Dietsche > > "Daniel Martins" writes: > > > I did your test wuth a null regexp > > > > It is a regexp problem! > > > > Org-mode has two variables: org-deadline-string and org-scheduled-string > > (see below) > > > > and I want to match tasks which have a timestamp, ie satisfies the > > org-ts-regexp2 > > > > BUT DO NOT have org-deadline-string NOR org-scheduled-string > > > > I tried > > > > (org2rem-pure-timestamps-string > > (concat "\\(" org-deadline-string "\\|" > > org-scheduled-string "\\)\\{0\\}")) > > > > in order that a regexp such as > > > > "\\(org-deadline-string\\|org-scheduled-string\\)\\{0\\}" > > > > would match only zero {0} occurrences of > > (org-deadline-string|org-scheduled-string) > > but this seems to be a mistake. > > > > Any hint?? > > I can only suggest the empty regexp, as before: > > (org2rem-pure-timestamps-string "") > > If this doesn't work, I don't know. > > Regards, Olaf > ------=_Part_114438_29630115.1231898705361 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry for the confusion,

I did try the empty regexp as suggested and it "worked" ie no problem appeared.

My problem is to find a regexp for timestamps outside DEADLINE: and SCHEDULE: rows

In other words, given three variables A B C with regexps.

If I have a regexp given by variable A and I want to find a text which satisfies A but DO NOT satisfy B nor C how can I write uch regexp?

2009/1/13 Olaf Dietsche <olaf+list.orgmode@olafdietsche.de>
"Daniel Martins" <danielemc@gmail.com> writes:

> I did your test wuth a null regexp
>
> It is a regexp problem!
>
> Org-mode has two variables: org-deadline-string and org-scheduled-string
> (see below)
>
> and I want to match tasks which have a timestamp, ie satisfies the
> org-ts-regexp2
>
> BUT DO NOT  have org-deadline-string NOR org-scheduled-string
>
> I tried
>
>     (org2rem-pure-timestamps-string
>           (concat  "\\(" org-deadline-string "\\|"
>                org-scheduled-string  "\\)\\{0\\}"))
>
> in order that a regexp such as
>
> "\\(org-deadline-string\\|org-scheduled-string\\)\\{0\\}"
>
> would match only zero {0} occurrences of
> (org-deadline-string|org-scheduled-string)
> but this seems to be a mistake.
>
> Any hint??

I can only suggest the empty regexp, as before:

    (org2rem-pure-timestamps-string "")

If this doesn't work, I don't know.

Regards, Olaf

------=_Part_114438_29630115.1231898705361-- --===============1009773410== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1009773410==--