Questions tagged [editpad]

33 questions
22
votes
7 answers

how to use a regular expression to extract json fields?

Beginner RegExp question. I have lines of JSON in a textfile, each with slightly different Fields, but there are 3 fields I want to extract for each line if it has it, ignoring everything else. How would I use a regex (in editpad or anywhere else)…
James Cooper
  • 417
  • 1
  • 3
  • 12
2
votes
1 answer

What is Java module jdk.editpad?

The JDK ships with a module jdk.editpad that exports no services or packages. The Javadoc describes this module as: Provides the implementation of the edit pad service used by jdk.jshell. But if you look at the modules depended on by jdk.jshell,…
Archie
  • 4,959
  • 1
  • 30
  • 36
2
votes
2 answers

Using regex to trim trailing white space

My editor EditpadPro allows me to create syntax colouring schemes. The scheme I'm writing includes comments which span "--" to end of a line. I'd like a regex which starts from the "--" but which stops at the last non-blank character. I cannot use…
Swifty
  • 71
  • 6
2
votes
6 answers

Regular Expressions - Greedy but stop before a string match

I have the some data and i'd like to convert it into a table format. Here's the input data 1- This is the 1st line with a newline character 2- This is the 2nd line Each line may contain multiple newline characters. Output 1- This the 1st line…
Abbas Gadhia
  • 14,532
  • 10
  • 61
  • 73
1
vote
2 answers

matching first occurrence of a symbol without anything else in EditPad

There is a question like this here asking about the first occurrence of "1" in each line, but in EditPad it doesn't work at all, even when I use the Multi-Line Search Panel. I have Regex on, Highlight All on. All other functions are…
1
vote
1 answer

How do I replace text with a linebreak using regular expressions

I have written a program that searches for 'opens' without matching 'closes' in a target file. It produces an output like this: open close open open close In this example here the second 'open' is not immediately followed by a matching 'close',…
Mark Springer
  • 195
  • 1
  • 8
1
vote
1 answer

EditPad Regex replacement of transcription timestamps

I am trying to take the transcription text from a Youtube video and parse it out into a document for editing. I have been able to remove the majority of the HTML markup that is placed in it. However, I would like to remove the code below, which is…
MB34
  • 4,210
  • 12
  • 59
  • 110
1
vote
1 answer

Regex to to add periods after single capitals but only up to "|" in line

I'm working on a 3.75 million line text catalog of Authors names and titles in Editpad Pro. I need to standardize the authors initials to have periods after them. The catalog has the authors name and book titles separated by a vertical bar "|"…
Paul Cook
  • 27
  • 2
  • 4
1
vote
1 answer

How do I start at the first non blank character of a line (Regex)

I want Regex to start at the first word/number that isn't blank. In my example below, I want to start at LG. There are lots of other lines of a near identical structure I will also have to match through.
user8223669
1
vote
1 answer

How to remove duplicate strings in Notepad++/EditPad?

I looked around and only managed to get this: \b(\w+)\b([\w\W]*)\b\1\b, substitute with: $1$2. However, it only woks by removing words, like if you have: word1, word2, word1, word2, word3 *you get:* word1, word2, word3 What I want is if you…
lobjc
  • 2,751
  • 5
  • 24
  • 30
1
vote
1 answer

EditPad Regex replacement

I have a bunch of JSON data with entries like this: "FILENAME":"/DownloadFile2.aspx?File=q%3a%5cPeople%5c1026732%5c819%5cLetters%5cAttend1026732160213.pdf", I want to replace all of them with…
MB34
  • 4,210
  • 12
  • 59
  • 110
1
vote
1 answer

RegEx: capture all the phrases with hyphen in them

I have a very long list of words that after converting from another format, some of the words in it are hyphenated. for example: book, im-moral, law intesti-nal, lung flimflam*, fly-by-night*, illegal, How can I capture all the phrases that have…
wiki
  • 1,877
  • 2
  • 31
  • 47
1
vote
3 answers

Regular expression for a string that does not start with a /*

I use EditPad Pro text editor. I need read string into code, but I need to ignore ones that start with the label "/*" or tab + /*, for example: /** * Light up the dungeon using "claravoyance" * * memorizes all floor grids too. **/ /** This…
Hernaldo Gonzalez
  • 1,977
  • 1
  • 21
  • 32
1
vote
2 answers

EditPad: Need a regex that handles multiple possible data formats

First, I'm using EditPadPro for my regex cleaning, so any answers given should work within that environment. I get a large spreadsheet full of data that I have to clean every day. I've managed to get it down to a couple of different regexes that I…
JVC
  • 793
  • 3
  • 8
  • 21
1
vote
3 answers

EditPad RegEx ... I'm lost

I'm trying another find/replace with regex, and I've got some oddball characters that I'm tripping over. Summary: Some lines (in this carat separated file) have a specific tag or two in peren's (either "(S)" or "(N)") following the part number, and…
mOrloff
  • 2,547
  • 4
  • 29
  • 48
1
2 3