Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to multiline-search in a text widget

Status
Not open for further replies.

jicote

Programmer
Jan 8, 2003
16
MX
How to search two words that are in separate-
consecutive lines in a text widget using its
search command?

I have something like:

Test 23
PASS

Test 24
FAIL

so far, I am just able to find pattern within one line.

Thanks
Jorge Moreno
 
according to the ManPage: "The matching range must be entirely within a single line of text. For regular expression matching the newlines are removed from the ends of the lines before matching: use the $ feature in regular expressions to match the end of a line. For exact matching the newlines are retained."

I guess you have to use the -regexp switch.

Bob Rashkin
rrashkin@csc.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top