Last active
          July 24, 2024 09:40 
        
      - 
      
 - 
        
Save keithwongg/1cd6d9a74c865dff5e3a0748029ed278 to your computer and use it in GitHub Desktop.  
Revisions
- 
        
keithwongg renamed this gist
Jul 24, 2024 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ # Notepad++ ## Search 2 keywords in the same line Join 2 keywords with `.*` @@ -14,3 +15,11 @@ Notepadd++ > Find > Find what > Input regex ``` PUT".*user ``` # Sublime Text ## Search for a string that contains "api/user" and "SERVER-STATUS=500" ``` (?=.*api/user)(?=.*SERVER-STATUS=500)\w+ ```  - 
        
keithwongg created this gist
Jul 24, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ # Search 2 keywords in the same line Join 2 keywords with `.*` Example: ``` 22/07/2024 11:20:00 +08:00 HTTP "PUT" "/user" responded 500 in 361.2326 ms ``` Want all instances of `PUT` requests for endpoint `/user`. Notepadd++ > Find > Find what > Input regex ``` PUT".*user ```