RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find lager missing ~n
Expression
^.*lager(?:(?!~n").)*$
Description
This is a regex I made to ifnd all the lines of erlang code that use lager to log information, and that might be missing the line return at the end.
Matches
lager:info("bla bla ~p",[BlaBla]), | lager:debug("error - eof reached"), | lager:error("We ignore the ~n in the middle of the string"),
Non-Matches
lager:info("bla bla ~p~n",[BlaBla]), | lager:debug("")~n", | lager:error("~n"),
Author Rating: Not yet rated. Tarek Zeineddine
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials