Matching lines

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hendry

    Matching lines

    I am trying to grab the lines from a textarea that match a substring.

    How best to implement this?

    I tried regex and failed miserably. Here I try to match every line with
    INFO:


  • Joshie Surber

    #2
    Re: Matching lines

    what regex did you use? i think that /^.*whateverYouA reLookingFor.*$/
    should do the trick nicely. I believe (without looking, though) that
    the regex page in the manual has a similar example.

    Comment

    Working...