Re: basic regex back reference



gcr schreef:

/(\[+[*\d]+\])/

The "\[+" means: one or more literal "["s.

The "[*\d]" is a character class off a literal asterisk and a digit, so
it tries to match either an asterisk or a digit. The "+" behoind it
means "one or more of the previous" again.

ITYM: /(\[\d+\])/
which means: a literal "[", followed by one or more digits, followed by
a literal "]".

--
Affijn, Ruud

"Gewoon is een tijger."


.



Relevant Pages

  • Re: query filter not like
    ... filter for all but the records that contain the last astrick and 1 digit. ... The trouble is that an asterisk is itself a wildcard, ... will find all records except those with five digits, a literal asterisk, three ...
    (microsoft.public.access.queries)
  • Enigma 1353 - Three cubed
    ... Harry, Tom and I each looked to replace each ... asterisk with a digit in such a way that the ... digit was the same as Tom's. ...
    (rec.puzzles)