Search a line then display in a textarea

Hi everyone.
I’m new to xojo. Can you help me to figure out how to check each line that contains more than 0 queued. And display the whole line that has more than 0 queued.
Below is sample of the file.

smsbox:tes1, IP (0 queued), (on-line 0d 2h 30m 37s)
smsbox:test2, IP (1 queued), (on-line 0d 2h 30m 36s)
smsbox:test3, IP (2 queued), (on-line 0d 2h 30m 35s)
smsbox:test4, IP (3 queued), (on-line 0d 2h 30m 34s)

Hope someone can help me on this. Thank you in advance.

I’d use a regular expression, something like this (untested):

dim rx as new RegEx
rx.SearchPattern = "^.*\\(0?[1-9]\\d* queued\\).*"

dim match as RegExMatch = rx.Search( theText )
while match isa RegExMatch
  dim theLine as string = match.SubExpressionString( 0 )
  // Do something with the theLine

  match = rx.Search

This will never match “(0 queued)” but would match any of the following:

1 queued
10 queued
01 queued
019 queued
115 queued