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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cpic100

    Effect of Regex Modifiers

    Having changed m to s and replaced the \s with .*, I'm now getting results - but too many of them. Instead of stopping after two line sof the file the script is searching it matches everything to the end of the file. The file being searched basically consists of questios and answers following...
  2. cpic100

    Effect of Regex Modifiers

    Thanks for that. So if the m means multiple lines, there is no need to ad anything to the search to ensure that it searches over two lines (i.e the lines are consecutive and seperated by a newline)?
  3. cpic100

    Effect of Regex Modifiers

    In the line if ($line =~ m@ <SOME STUFF TO MATCH>.*\s.*<SOME MORE STUFF TO MATCH>.*$@mg) what does the \s and .*$@mg actualy mean/do? I think it should search a string for some stuff on one line, then skip to the next line and look for some other stuff, but it doesnt seem to do anything.

Part and Inventory Search

Back
Top