text - How to find seperated words in notepad++ -


hello have text file contains word this

137.147.138.224|ubnt|ubnt|australia 137.154.4.3|united states 137.175.134.200|ubnt|ubnt|canada 

and want find

137.154.4.3|united states 

keep in mind there may in place of 137.154.4.3|united states 155.186.7.9|india , 185.173.4.7|japanso have long list of words wanted find words contains 1 | said!

to find lines have ip, | , country, can use regex pattern:

\d+\.\d+\.\d+\.\d+\|[^|]+$

\d+\.\d+\.\d+\.\d+  # digits (1 or more) , dots \|                  # string literal [^|]+               # 1 or more characters not '|' $                   # end of line 

demo


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -