Learncado
Learncado

Learncado brings together a vast collection of questions and answers. Expand your knowledge, learn new skills, and find solutions to your queries effortlessly. Enhance your learning experience and save valuable time by exploring our website today.

Resources

  • Questions
  • Question By Tags

Help and support

  • Contact
  • About

  • Geniecourse
  • Jetsodeals
  • Rentcado
  • Dealcado
© 2021-2023 Learncado All Rights Reserved.

Search Results (347)

Results for regex

December 2nd, 2023
Regex unexpected behavior with capturing new lines (python)

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 ...

regexpython-re
Read more
December 2nd, 2023
How to create a "variable" group (for future reference via \n) in extended grep regex type (how not to repeat myself)?

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...

regexgrepfind
Read more
December 1st, 2023
Regex for the following string (digit+"dot" )

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...

regex
Read more
December 1st, 2023
Regex to match word containing only given characters

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...

regexnotepad++
Read more
November 30th, 2023
Validate RegEx pattern in PowerShell

Is it possible to validate pattern before creating RegEx object in PowerShell? $Pattern = "[A-Z]{1,3" # Pattern is invalid $Regex = [regex]::new($Patt...

powershellregex
Read more
November 30th, 2023
Regex for characters between double quotation and end up with a comma

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...

jsonregex
Read more
December 1st, 2023
I've tried to get this regex replacement to work in the chrome snippets replacement panel `/((m|n))0/ ` but couldn't figure it out

Here's the snippet: //Get userId,questionId and title let btn0 = document.createElement('input'); btn0.type = "button"; btn0.value = 'Read Cont...

javascriptregexgoogle-chrome-devtools
Read more
November 29th, 2023
Regex for extracting the first letter after a slash '/' and the last whole word

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...

regexsed
Read more
November 29th, 2023
Properly match nested brackets with regex in python

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...

pythonregex
Read more
November 29th, 2023
Split string by all words except specified words Regex JavaScript

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 ...

javascriptregexstring
Read more
November 28th, 2023
Find and Replace Words that have Uppercase letters in the middle using RegEx for Notepad++

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...

regexnotepad++
Read more
November 27th, 2023
Shell or Bash regex match escape characters

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...

regexbash
Read more
November 29th, 2023
RegEx and Excel VBA for date extraction from a filename where date can be dmmyy or ddmmyy

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...

regexexcelvba
Read more
November 25th, 2023
Regex to match paragraphs containing the pattern {{}}

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}...

regex
Read more
November 24th, 2023
No regex pattern seems to solve my problem

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...

regex
Read more
November 24th, 2023
Extract specific value within cell (RegEx Pattern)

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...

excelexcel-formula
Read more
November 24th, 2023
Regex to find the function declarations from text obtained from Apps Script API

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: "...

javascriptregexgoogle-apps-script
Read more
November 23rd, 2023
Regex to Extract Environment, Domain, and Hostname from URL with Variable Subdomains

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...

javascriptregexregex-group
Read more
November 22nd, 2023
Regex: match a whole word that starts with a prefix?

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(/...

javascriptregex
Read more
November 29th, 2023
Regex extractor in JMeter to match text with multiple line breaks

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...

regexjmeterextractor
Read more
November 20th, 2023
Getting numbers from an array using mask and regex

Having this array with code and collection, where X is a mask that can be "any number": input_array = [{"code": "XXXX10", "collection": "one"}, {"code...

pythonregexpython-re
Read more
November 19th, 2023
How to match any filename with extension in a list of filenames using regex?

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...

regex
Read more
November 18th, 2023
Selecting mirror with regex in bash script

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...

regexbash
Read more
November 18th, 2023
Regex vs IsNaN: which is better to use for checking an input is a number performance wise

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]+$/; ...

javascript
Read more
November 18th, 2023
Regex capturing too much

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...

regexwikipediaregex-lookarounds
Read more

Hot Topic

  • 25881

    How do I undo the most recent local commits in Git?

  • 11618

    How can I remove a specific item from an array in JavaScript?

  • 20343

    How do I delete a Git branch locally and remotely?

  • 7387

    How can I find all files containing a specific text (string) on Linux?

  • 7330

    How to find all files containing specific text (string) on Linux?

  • 7611

    How do I revert a Git repository to a previous commit?

  • 2671

    How do I create an HTML button that acts like a link?

  • 8481

    How do I check out a remote Git branch?