Menu

#34 perl regex /[lm]at/

open
BIND (49)
5
2002-03-25
2002-03-25
No

Square brackets next to / do not work. This search
should resturn lat or mat containig records but
returns nothing. Other searches like /rp[ag]1/ do
work.

Discussion

  • Ian M. Donaldson

    • assigned_to: nobody --> g9neil
     
  • Vicki Lay

    Vicki Lay - 2002-04-04

    Logged In: YES
    user_id=489725

    I have noticed that square brackets next to / is only a
    problem in the cases in which the square brackets are at
    the BEGINNING (but not the end) of the text part of the
    regex, next to the / .
    This is true for all of these cases: /[ab]cd/, /[a-c]def/,
    and /[^rp]def/

     
  • Ian M. Donaldson

    Logged In: YES
    user_id=134646

    Not fixed at time of release of Dataman 1.8

     

Log in to post a comment.

MongoDB Logo MongoDB