in reply to Re^2: newline in unix
in thread newline in unix

Here we go...


if (/CONNAME\(([\d.]+)\)[\s.]*CURRENT[\s.]*/is){
print $&;} 



Replies are listed 'Best First'.
Re^4: newline in unix
by Anonymous Monk on Jul 15, 2004 at 04:23 UTC
    Sorry, I'm a forum retard.

    This works:
    
    
     if (/CONNAME\(([\d.]+)\)[\s.]*CURRENT[\s.]*/is) {
     print $&;} 
     


    This does not:
    
     if (/CONNAME\((.*\..*\..*\..*)\)\[\s.\]*CURRENT\[\s.\]*CHL/is) {
     print $&;}
    


Re^4: newline in unix
by Anonymous Monk on Jul 15, 2004 at 04:06 UTC
    My last post wasn't a solution to my problem, but was the actual regex with brackets included.