Results for regex
I'm trying to find lines in large amount of text with 4 words or less and ending with ":". The text is messed up so any whitespace can show up at the ...
Result: I wanted from regex what it is not intended for. If you don’t find a function in regex, then most likely it’s not there. Regex for simple case...
ID_number: 111.2.003 ^ I need help creating a regex that will select anything on the logs that starts with "ID_number: " and ends with ".003" . So the...
I want to match entire word (or string) that containing only a set of given characters. For example, if the list of letters given are (p, o, p, s), it...
Is it possible to validate pattern before creating RegEx object in PowerShell? $Pattern = "[A-Z]{1,3" # Pattern is invalid $Regex = [regex]::new($Patt...
I have a language json file like this: "FAQs": "FAQs", "Contact": "Contact", "Log in": "Log in", I want to translate the second values How do I select...
Here's the snippet: //Get userId,questionId and title let btn0 = document.createElement('input'); btn0.type = "button"; btn0.value = 'Read Cont...
So, I have this string: JobDefinition://apps/ess/scm/productHub/itemImport/ItemImportSchedulingJobDef And I want to transform it to: /a/e/s/p/i/ItemIm...
I'm attempting to parse a wikipedia file dump with RegEx. I want to match and remove everything between a set of brackets, including the brackets them...
I have a string const s = 'pong-ping-bink-ping-pong-ping-donk'; I want to split it by all words other than ping or pong with regex. For this string I ...
I have a huge list of names. Each names are separated by newline and formatted with comma like the following Lastname, Firstname Lastname, Firstname L...
I'm trying to do a pretty simple pattern match, but am getting hung up of escapes or specific special characters. I'd like to match a branch name like...
I am trying to rename a set of pdf filenames in the form: "Joe BLOGGS_3052023.pdf" or "Joe BLOGGS_31052023.pdf" ("FirstName SURNAME_dmmyy" or "FirstNa...
I need to match whole paragraphs containing the following pattern, which is used by a software that I use called Anki Pattern: {{c1::this is a phrase}...
I'm dealing with a "greedy" regular expression, which is trying to match as much text as possible. In this case, it's matching the first #Q and the la...
maybe someone of you can help me or maybe point me in the right direction how to solve this problem in excel. I have a sheet with cells containing mix...
When one makes a request from the App Script API to return all of the files and functions for a given project this is what a source file looks like: "...
I am working on a project where I need to extract specific information from URLs, specifically the environment, domain, and hostname. The URLs have va...
How can I match a whole word that starts with a prefix? For example: const str = 'ease-in-out filter blur-[200px] opacity-0' const res = str.replace(/...
I try to use Regular Expression Extractor in JMeter to match multiple lines with line breaks. It is a JSON formatted text, which is between textarea t...
Having this array with code and collection, where X is a mask that can be "any number": input_array = [{"code": "XXXX10", "collection": "one"}, {"code...
Consider a list of filenames in a single string that looks like (every file has an extension) file1.tex dhdgs kdkd.csv f-i.le.jpg I need to m...
I am trying to get a list of mirrors from https://mirrors.slackware.com/mirrorlist/ . I have a regex statement that gets the list of all of the server...
To check whether a given input is a number, which of the following approaches are more efficient? !isNaN(input) OR using regex, var regex=/^[0-9]+$/; ...
I have a problem with a .NET regex that I need to create for my AutoWikiBrowser bot on Wikipedia. The example is rather long, but I need an even longe...
How do I undo the most recent local commits in Git?
How can I remove a specific item from an array in JavaScript?
How do I delete a Git branch locally and remotely?
How can I find all files containing a specific text (string) on Linux?
How to find all files containing specific text (string) on Linux?
How do I revert a Git repository to a previous commit?
How do I create an HTML button that acts like a link?
How do I check out a remote Git branch?