Notepad++ move the end of a line to the front [duplicate] - regex

This question already has answers here:
notepad++ reg expressions to swap two values
(4 answers)
Closed 2 years ago.
I have a csv file with movie data but some of the titles have the starting word at the end of the title for example
281,River Wild, The
282,Time to Kill, A
need to be
281,The River Wild
282,A Time to Kill

For anyone wondering the solution was to use a regular expression
,(.+?), (.+?)$
and the replace with
,$2$1
and click on regular expression and wrap around

Related

Regex Extract on Google Sheets [duplicate]

This question already has an answer here:
Reference - What does this regex mean?
(1 answer)
Closed 3 years ago.
I am trying to find an expression that can be used extract a string after a specific number of characters.
E.g
FR_EN_BR_Student_Exact
FR_EN_NB_Student_Exact
I would want a pattern that can take all characters past the second underscore ( not including the underscore.
Would appreciate any ideas!
I understand basic regex but am having trouble with this specific query.
try:
=ARRAYFORMULA(IFNA(REGEXEXTRACT(A1:A, ".+_.+_(.+_.+_.+)")))

Regular expression to select everything outside <> in a string [duplicate]

This question already has answers here:
Regular expression to extract text between square brackets
(15 answers)
Closed 4 years ago.
I'm not very handy with regex and I need to select everything outside <> to get the length of the string, excluding the "<>".
For example: first<second>third<fourth>fifth should give me first third fifth.
How can I do it? I spent some hours searching the web but I didn't really find what I needed. The regex is needed for use in javascript.
You can always replace the text between smaller than and greater than symbols using regex below.
/<\w+>/g
In this case the text which is outside remains.
See https://regexr.com/422jf

Sublime text regex - remove text in parenthesizes [duplicate]

This question already has answers here:
My regex is matching too much. How do I make it stop? [duplicate]
(5 answers)
How can I remove text within parentheses with a regex?
(9 answers)
Closed 4 years ago.
I am having list on telephone numbers in my js file, and some of them have in parenthesizes translations that I don't need:
Azerbaijan (Azərbaycan)
I wont to find regex in sublime to do that, but I cannot find the right command. I have tried:
((.))
((*))
\(.*)\
\(.*\)
But I aways remove something different ... If someone know the solution, please help.
Ok as Paul Bak said the (.*) works at his computer, and it does work, just that my js file is compressed all in same line so it removes everything after the (...
I beautified js and use this regex and now it is solved.

validation format - Reges expression [duplicate]

This question already has answers here:
How do I match an entire string with a regex?
(8 answers)
Closed 5 years ago.
I believe my validation is correct however it is not working.
My regular expression pattern is
ValidationExpression= "(I|II|III|IV)[DEF]?"
Basically, the user should put any of the first options then with optional D, E or F
Valid text Example: IIIC
Thank you
I don't know much about regex, but I did a quick bit of googling and came up with this:
https://regex101.com/r/KYpVbk/1
It explains how it works at the side :)

regular expression find all the http within [test](http://) [duplicate]

This question already has answers here:
My regex is matching too much. How do I make it stop? [duplicate]
(5 answers)
Closed 6 years ago.
I have tried hrs for this regex and couldn't sort it out, and seek for some help.
/\[.*\]\((https?:\/\/(?:www\.|(?!www))[^\s\.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})/g
Here is the link to my regex page link
https://regex101.com/r/Xc5zDp/1
I try to pick out all the links in the sentence and example like this [link](http://test.com), but it keep select both links all together
Simplify your regex to this: \[.*?\)
Is this what you want? Demo