Difference between revisions of "Regex regular expressions"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
| Line 5: | Line 5: | ||
= PCRE Perl Compatible Regular Expressions =    | = PCRE Perl Compatible Regular Expressions =    | ||
This also covers '''Notepad ++'''  | |||
  regex like [\r\n]+ matches CRLF in Notepad ++  |   regex like [\r\n]+ matches CRLF in Notepad ++  | ||
== Notetad++ ==  | |||
Find, replace and remove matching line. Find any occurances of <code>help</help>, ending with <code>\r?\n</code>. <code>\r</code> is optional in case the file doesn't have Windows line endings.  | |||
<source>  | |||
Find what: ^help\r?\n  | |||
Replace with:  | |||
</source>  | |||
=== Resources ===  | |||
*[https://stackoverflow.com/questions/5876296/regex-remove-lines-containing regex-remove-lines-containing] Stackoverflow  | |||
= Websense =  | = Websense =  | ||
Revision as of 17:43, 22 October 2018
General expressions
+ -unlimited string \ -escape/protect character /[abc]+/ -matches a bb ccc
PCRE Perl Compatible Regular Expressions
This also covers Notepad ++
regex like [\r\n]+ matches CRLF in Notepad ++
Notetad++
Find, replace and remove matching line. Find any occurances of help</help>, ending with \r?\n. \r is optional in case the file doesn't have Windows line endings.
Find what: ^help\r?\n
Replace with:
Resources
- regex-remove-lines-containing Stackoverflow
 
Websense
It accepts reg expresions with limited form example:
- (.) -same as * wildcard matches any lengh of string and brackets are RegEx delimiters
 
References
- regex101.com Dynamic RegEx builder