Ip to country conversion, etc.

batch_web  replace_translate 

Convert IP address to Country Name

Example:

Translate IP address to country for each visiting records

ip2country

Replace settings:

1) Replace unit=Chars

2) Search for pattern=\d+\.\d+\.\d+\.\d+

3) Replace with pattern=$match \( ip2country($match) \)

4) Note: you can also select menu Replace->Replace by template->Misc->Convert IP to Country Name


Expression Calculator

Example:

Calculate result of each line

ip2country

Replace settings:

1) Replace unit=Line

2) Search for pattern=.*

3) Replace with pattern=$match = eval($match)\n

4) If=$match=~/^[\d\+\-\*\/\(\)\.\s]+$/

5) Note: you can also select menu Replace->Replace by template->Misc->Expression Calculator