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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -