0

Source:

9981"TVHeadend HTTP server (web interface)"

and add a colon between to make python dictionaries!

But these are registered known IP address and too many to do one at a time!

I tried replacing the same find and adding the : but it replaced the number with the regex code!

Not ever sure if my code was correct!

Also I want to find the first double quote as you can see each line has two!

Toto
  • 83,193
  • 59
  • 77
  • 109
KevyTeky
  • 29
  • 4
  • What regex have you tried so far? – snazzybouche Nov 26 '19 at 18:11
  • Looks like you are looking to create a regex, but do not know where to get started. Please check [Reference - What does this regex mean](https://stackoverflow.com/questions/22937618) resource, it has plenty of hints. Once you get some expression ready and still have issues with the solution, please edit the question with the latest details and we'll be glad to help you fix the problem. – Wiktor Stribiżew Nov 26 '19 at 18:11
  • Not a duplicate of a **_Reference_** !! –  Nov 26 '19 at 18:32
  • \d{4}(.*?)\" this is am using now, it finds but also find if numbers are at the end. I don't mind if I can't do a replace all. – KevyTeky Nov 26 '19 at 18:54

1 Answers1

2
  • Ctrl+H
  • Find what: \d+\K(?=")
  • Replace with: :
  • CHECK Wrap around
  • CHECK Regular expression
  • Replace all

Explanation:

\d+             # 1 or more digits
\K              # forget all we have seen until this position
(?=")           # positive lookahead, make sure we have a double quote after

Screen capture (before):

enter image description here

Screen capture (after):

enter image description here

Toto
  • 83,193
  • 59
  • 77
  • 109