Question: Guys i'm using select where query using vb access code, i have no problem with checking if records match, i'm having problems with if sTextbox does not match the value in the data base... it should print "No Record Match" only once, but in this statement it prints out MsgBox("No Record Match") the numerous times until the Record in database has been all compared... i can't add Exit Do, cause it will only run the statement once and it will not compare the sTextbox to all the values of the database... i'm not allowed to use any other means except with sql query statement. I would really appreciate the help Thank You very much.

```
Dim MyDB As DAO.Database, MyRec As DAO.Recordset, MyList As String
Dim fQue As String, lQue As String, tQue As String

Set MyDB = CurrentDb

If IsNull(sTextbox) Or sTextbox = "" Then
     MsgBox ("You must enter Value in Search Box")
End If

If (sTextbox <> "") Or (sTextbox <> "") Then
MsgBox ("There is value")

Set MyDB = CurrentDb
Set MyRec = MyDB.OpenRecordset("SELECT * From clientInfo")

Do While Not MyRec.EOF 'Loop to check if sTextbox = tQue
  fQue = MyRec![FirstName]
  lQue = MyRec![LastName]
  tQue = MyRec![towerUnit]
  MyRec.MoveNext

    If (sTextbox = tQue) Then
       Set MyDB = CurrentDb
       Set MyRec = MyDB.OpenRecordset("SELECT * From clientInfo where TowerUnit='" & sTextbox & "'")

       FullName = lQue & ", " & fQue
       MsgBox (FullName)
       ClientTextbox.Value = lQue & ", " & fQue
        UnitTextbox.Value = tQue
        Exit Do
    End If

    If (sTextbox <> tQue) Then

        MsgBox ("No Record Found")
        ''Problem lies here because it prints out MsgBox until the While loop is false...
    End If

Loop

```

End If

Answer: 
By defaut `?` is greedy in javascript. Your problem is somewhere else.

aside note: to have `?` lazy you must write `??` (like other quantifiers)
`(=1)*` will match `=1=1=1=1=1=1=1=1`

If you're looking to match all digits after the `=` then use

`abcde=(\d+)`

This will place all the digits into capture group 1.