Displaying 20 results from an estimated 20000 matches similar to: "Regexp update in R-devel"
2003 Oct 24
2
Versions of PCRE, documenting what grep etc do.
A couple of weeks back there was some discussion about documenting the
regular expressions as used in R. Several years ago the problem was that
this was OS-dependent, and to plug that problem we incorporated regexp
code from a version of GNU grep, later updated to grep-2.4.2 in R 1.2.0.
I have been looking at documenting what grep(perl=TRUE) does, and we
have a similar problem in that the
2005 Aug 21
0
Patch for Element.Class - wrong regexp
Hello,
I noticed (due to a recent post by Martin Honnen to clp) that
Element.Class uses wrong regexps for its operations.
E.g., Element.Class.has() will find "classA" in "classA-foobar"
I also changed the interface of .has() to the more general one used in
.has_any()
--- util.js.old 2005-08-21 19:18:40.000000000 +0200
+++ util.js 2005-08-21 19:31:42.000000000 +0200
@@
2005 Aug 31
1
Processed: Re: [Pkg-nagios-devel] Bug#325874: nagios-common: logcheck regexp issue
Processing commands for control at bugs.debian.org:
> reassign 325874 logcheck-database
Bug#325874: nagios-common: logcheck regexp issue
Bug reassigned from package `nagios-common' to `logcheck-database'.
> tags 325874 + patch
Bug#325874: nagios-common: logcheck regexp issue
Tags were: patch
Tags added: patch
> thanks
Stopping processing here.
Please contact me if you need
2007 Aug 30
0
Why Regexp#freeze?
I notice in recent commits that a number of these have been added:
/\[(\d+)\]/.freeze
I thought that Regexps are immutable. Furthermore, Regexp literals don''t
generate a new object each time they are encountered:
irb(main):001:0> 3.times { puts /\d+/.object_id }
-605707646
-605707646
-605707646
=> 3
irb(main):002:0>
Unlike strings:
irb(main):002:0> 3.times { puts
2006 Apr 07
1
regexp in gotoif
Hello!
this is a short one: in a gotoif-statement i would like to match a
variable to a number, where the number could have digits from 2-6.
asterisk only seems to be capable to match such a digit-range when used
in the extension, but not in a regexp, at least the following query
doesn't work:
exten => _X.,1,GotoIf($[${EXTEN} : 234[2-6]]?jump:)
obviously asterisk has a problem with
2010 Apr 19
3
stupid regexp question
Hello,
I have a stupid regexp question. I have a large data frame of strings. I would
like to convert all occurences of :
"W.m^{-2}"
to
"W/m2"
I make the following test :
gsub(glob2rx("W.m^{-2}"), "W/m2", "W.m^{-2}")
but it does not seem to work. I don't know how to do it otherwise as I could
never learn how to deal with the special
2007 Jul 13
1
Regexp Question - Merb::Router
Hi,
I''m looking through the Merb::Routing code and I''ve found a regexp that I
can''t figure out how it works.
Merb::Router::SECTION_REGEXP #=> /(?::([a-z*_]+))/
It takes a route definition string, like "/products/:model/:id" and
extracts the "model" string on the first pass, and later the "id" string.
Can anyone shed some light on
2012 Nov 09
2
Creating yyyymm regexp strings on the fly for aggregation.
Folks,
This question is somewhat related to a previous posting of mine.
I just can't seem to create a generic solution.
Here is a function that I found searching around the internet:
splitIt <- function(x, n) {split(x, sort(rank(x) %% n))}
I use it like so:
> splitIt(1:12, 2)
$`0`
[1] 1 2 3 4 5 6
$`1`
[1] 7 8 9 10 11 12
Or
> splitIt(1:12, 4)
$`0`
[1] 1 2 3
$`1`
[1] 4 5 6
2014 Nov 28
0
Re: [PATCH] lib: Add COMPILE_REGEXP macro to hide regexp constructors/destructors.
On Friday 28 November 2014 14:44:30 Richard W.M. Jones wrote:
> [NOTE: this is not the complete patch. Once ACKed, I will make the
> same mechanical change to all the other places in the library that use
> this pattern.]
> ---
> src/guestfs-internal.h | 24 ++++++++
> src/inspect-fs-unix.c | 164 +++++++++++--------------------------------------
> 2 files changed, 59
2003 Feb 23
0
unsubscribe
From:r-devel-admin@stat.math.ethz.ch on 02/22/2003 12:00 PM CET
Sent by: r-devel-admin@stat.math.ethz.ch
Please respond to r-devel@stat.math.ethz.ch
To: r-devel@stat.math.ethz.ch
cc: (bcc: Asheka Rahman/arahma1/LSU)
Subject: R-devel digest, Vol 1 #101 - 10 msgs
Send R-devel mailing list submissions to
r-devel@stat.math.ethz.ch
To subscribe or unsubscribe via the World Wide Web,
2003 Nov 26
0
Question about Unix file paths (and proposal for new regexp class)
> Date: Wed, 26 Nov 2003 13:52:44 +0100
> From: Martin Maechler <maechler@stat.math.ethz.ch>
> To: <Kurt.Hornik@wu-wien.ac.at>
> Cc: <r-devel@stat.math.ethz.ch>
> Subject: Re: [Rd] Question about Unix file paths
>
>
>
> >>>>> " Kurt" == Kurt Hornik <Kurt.Hornik@wu-wien.ac.at>
> >>>>> on Wed, 26
2007 Feb 16
0
R-devel news: non-ASCII character strings in packages
R-devel (pre-2.5.0) now has enough facilities to allow packages with
non-ASCII character strings to work reasonably well in locales where the
fonts use support the characters used. For example, names in Western
European languages can be used on both Latin-1 (and hence Windows 1252)
and UTF-8 systems. It should also be possible to make use of non-ASCII
object names.
To enable this, two
2009 Oct 02
3
help with regexp mass substitution
Hello *
i have to rename a lot of variables, and, given that they have regular name constructs, I would like to use regexps.
Here's a dump of my head(names(df))
varnames <- c("id.quest", "txt.1.3", "col1.1.3", "col2.1.3", "col3.1.3",
"col4.1.3", "col5.1.3", "txt.2.3", "col1.2.3",
2002 Aug 14
1
FW: R CMD check: Too long [R] code line generated (PR#1900)
On Wed, 14 Aug 2002, Henrik Bengtsson wrote:
> Sorry, but it was indeed the redirection of the standard output in
> Cygwin/bash that cause the first problem, not R (I should stop doing
> troubleshooting at 1:00 AM). So please forget about the problems reported in
> R_CMD_check.out. However, it would still be nice if you still update R CMD
> check to do join with "\n".
2003 Dec 30
2
regexp problem on R 1.7.0
Hi,
Am I missing something in using regexps in R?
Below, 'egrep' means invokation of the command from the shell
prompt.
# I have
> as.character(block.dist.vals)
[1] "1e+06" "2e+06" "5e+06"
# that I wish to convert to: "1" "2" "5"
# OK (R and egrep)
> sub( "e.+06", "", as.character(block.dist.vals) )
2006 Feb 08
0
Stange regexp problem with case sensitivity
Environment:
CentOS 4.2 (RHES4 clone)
Ruby 1.8.4
Rails 1.0
I am having a small difficulty with case sensitive matching in some
ruby code:
f_nam_re = Regexp.new(f_nam_re_s,"x")
produces these test results:
The passed regexp: ^QPCCCMR[[:digit:]]$
The regexp used is:
/^QPCCCMR[[:digit:]]$/i
$= is false
qpcccmr1 matches
QPCCCMR1 matches
QPCCMMR1 does not match
qpCCCMR1 matches
QPCCCMRC
2007 Feb 16
13
negate the regexp in validates_format_of
Railsters:
ActiveRecord''s validation system puts other database systems to shame.
However, the newbies might not know how to write a regexp that
excludes a match, instead of tests for it. Understand - I''m just
asking this question to help them. I have been using Regexps since
''grep'' on Xenix! But the newbies here might not know how to do this:
2007 Jan 27
1
gsub regexp question
Dear R Users,
I am trying to users gsub to remove multiple cases of square brackets and their different contents in a character string. A sample of such a string is shown below. However, I am having great difficulty understanding regexp syntax. Any help is greatly appreciated.
Ally
"tree STATE_286000 [&lnP=-12708.453945423369] = [&R]
2001 Dec 27
0
(PR#1229) RGui/R Console crashes when entering illegal
This is answered in the rw-FAQ, Q2.12! It is not a problem with R, but
with your installation of Windows.
*PLEASE* do not report FAQs as bugs: it a complete waste of the
developers' time.
On Thu, 27 Dec 2001 hb@maths.lth.se wrote:
> Full_Name: Henrik Bengtsson
> Version: v1.4.0 (2001-12-19)
> OS: WinMe
> Submission from: (NULL) (217.208.14.137)
>
>
> When
2010 Aug 18
0
32/64-bit Windows builds for R-devel
We now have the integrated 32/64-bit installer for R-devel available from
http://cran.r-project.org/bin/windows/base/rdevel.html , and binary builds of
almost all the CRAN packages from CRAN or CRAN extras (and BioC 2.7 has a
fairly complete 32/64-bit repository). There is also a win-builder service
available for R-devel.
These are built with different toolchains from R 2.11.x, using gcc