Markdown Nested Lists with Multiple Lines under Single Bullet - list

Is it possible to create markdown lists so that I can have multiple lines under a single bullet as in the example below:

It depends on the markdown flavour and the markdown processor used.
Using <br> should often work.
It does here on Stack Exchange. This list:
First bulletnew line
Sublist...with a new line
Second bullet
...is generated with:
* First bullet<br>new line
* Sublist<br>...with a new line
* Second bullet

Related

Regular Expression help skip lines "/*X" but not "/**/

So for PCRE (PHP) regular expressions, I'm trying to read output from a search on the mainframe platform from the development team.
I need to parse out file names so I can join back into other lists I am tracking details of a system migration.
My expression so far is on Regex101.com here with sample data.
I'm certain there are more efficiencies I can introduce, but for now I'm looking to meet the requirement before I go down that road.
Here is the code for reference
^(?#
Objective is to capture the first two columns: program name and line number. This part is easy
I'm able to skip lines with comments and start parsing at the 'QRY' string.
Challenge is I would like to skip lines like this
.*\/\*QRY.*$
and include lines like this [end comment appears before the 'QRY' string]
.*\/\*.*\*\/QRY.*$
Check for comment indicator and skip lines with comments
)(?!.*\/\*.*(?!\*\/)QRY)(?#
)(?#
Program name
)^(?<prgName>.+?)[[:blank:]](?#
QRY clause
)(?:.*QRY\((?<qryName>.*?)\))*(?#
FILE or QRYFILE clause
)(?:.*FILE\(\((?<qryFile01>.*?)\)(?:[[:blank:]]\((?<qryFile02>.*?)\)\))*)*
Try '~(?mi)(?:(?:^.*?/\*(?:(?!\*/).)*QRY.*$(*SKIP)(*FAIL))|^(?<prgName>.+?)[[:blank:]](?:.*QRY\((?<qryName>.*?)\))*(?:.*FILE\(\((?<qryFile01>.*?)\)(?:[[:blank:]]\((?<qryFile02>.*?)\)\))*)*)~'
features
line oriented only, does not validate comments
SKIP's line if QRY after start of comment begin
passes line where QRY is outside comment
demo

How to ignore specific charactor and new line using regex

I am trying to validate a csv file using Apache-NiFi.
My CSV file has some defects.
id,name,address
1,sachith,{"Lane":"ABC.RTG.EED","No":"12"}
2,nalaka,{"Lane":"DEF",
"No":"23"}
3,muha,{"Lane":"GRF.FFF","No":"%$&%*^%"}
Here in second row,its been divided into two lines and third row has some special characters.
I want to ignore both the lines. For that I use \{("\w+":"\w+",)*[^%&*#]*\}, but this is not capturing row split error and new line.
I also used \{("\w+":"\w+",)*[^%&*#]*\}$, but it doesnt even get the right answer.
This is you might looking for: ^[0-9]+,[a-z]+,\{("\w+":"[\w\.]+","\w+":"[a-zA-Z0-9]+")\}$

Delete/Replace multiple instances of two consecutive patterns using RegEx in Notepad++

Following is sample text.
Header
This is test, and
mid line adsf
bag a lot of many things
shoes>
shoes/
This line should not be affected.
Neither this line.
This is test, and
mid line
bag a lot of many things
shoes>
shoes/
Footer
Need to replace/remove lines where text starts with This is test and ends with
shoes>
shoes/
using Notepad++ 7.5
Newbie to RegEx, following were my trials, failed to select multiple instance.
(This is test).*(shoes/)
^This is test.*shoes/$
Expected output is
Header
This line should not be affected.
Neither this line.
Footer
^This is test((.|\n|\r)*?)shoes/$ should match; it takes into account the newlines. Edit: even shorter and better is ^This is test(?s:.*?)shoes/$ as suggested in the comments by #Wiktor.

Notepad++ - Selecting or Highlighting multiple sections of repeated text IN 1 LINE

I have a text file in Notepad++ that contains about 66,000 words all in 1 line, and it is a set of 200 "lines" of output that are all unique and placed in 1 line in the basic JSON form {output:[{output1},{output2},...}]}.
There is a set of characters matching the RegEx expression "id":.........,"kind":"track" that occurs about 285 times in total, and I am trying to either single them out, or copy all of them at once.
Basically, without some super complicated RegEx terms, I am stuck because I can't figure out how to highlight all of them at once, and also the Remove Unbookmarked Lines feature does not apply because this is all in one line. I have only managed to be able to Mark every single occurrence.
So does this require a large number of steps to get the file into multiple lines and work from there, or is there something else I am missing?
Edit: I have come up with a set of Macro schemes that make the process of doing this manually work much faster. It's another alternative but still takes a few steps and quite some time.
Edit 2: I intended there to be an answer for actually just highlighting the different sections all at once, but I guess that it not possible. The answer here turns out to be more useful in my case, allowing me to have a list of IDs without everything else.
You seem to already have a regex which matches single instances of your pattern, so assuming it works and that we must use Notepad++ for this:
Replace .*?("id":.........,"kind":"track").*?(?="id".........,"kind":"track"|$) with \1.
If this textfile is valid JSON, this opens you up to other, non-notepad++ options, like using Python with the json module.
Edited to remove unnecessary steps

Finding matches after a specific line in Perl/Notepad++

My problem is that I have a document that is split into sections, each section is noted by a single line header - [Header1], [Header2], etc. - and contains various types of data sets separated into individual lines, where each line is begun by a label indicating what type of data follows, like this:
[Header1]
data_label_type1 = 1,2,3
data_label_type2 = 1,2,3,4
data_label_type1 = 1,2,3,4,5
data_label_type3 = 1,2
Note the headers/sections are out of order, so Header1 doesn't always start a document and Header2 won't always follow.
A bit off topic, but the data sets are results from an experiment I'm mainting for a thesis.
I want to be able to capture type 1 data found only in the first section (under Header1) using a single regex function. After capturing it I was going to use replace and another function to convert the captured data to a different form.
Initially I was using the regex type1\h*=\h*([[:graph:]]*) but this only goes line by line, and I've got hundreds of documents - potentially tens of thousands of individal lines to catch.
I can use regex to convert my data well enough, but my problem lies in that I have no idea how capture type 1 data from Header1 exclusively. Any help, tips or pointers to start some experimenting would be really appreciated!
Regex apparently not capable of providing a solution, will use alternatives such as a parser instead.