Category "regex"

Regex: capturing capital word with nothing in front of it

I'm trying to match all proper nouns in some given text. So far I've got (?<![.?!]\s|^)(?<!\“)[A-Z][a-z]+ which ignores capital words preceded by a

Django subdomain rewrite using uwsgi on Google Cloud Run

I am moving a Django site to GCP and using Google Cloud Run for the first time. The experience is great. I was also very pleased with the domain mapping feature

How to make a regular expression for IPv6 with prefix?

I created this very complex regular expression(RegEx101) for IPv4 and IPv6 ((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-

Only postive integers in input field in react

I have a input field for price and quantity and I want to restrict it to have only +ve integers. I don't want to do any kind of validation like the type=number

regex pattern for table structure string

see this i am struggle with match the pattern with empty column. my regex pattern look like ^(.*?\$).*?(\w\:\\.*?)\s(.*?)$. this pattern match the not empty

Scrabble :Assume that you are trying to complete a crossword puzzle

In a crossword puzzle, some letters are given and we have to figure out which complete word can we make out of it. For example, given letters "cwd"in the same o

How can I use a regex expression to identify the falses between braces on different lines?

I'm attempting to use the Python re.sub module to replace any instance of false in the example below with "false, \n" local Mission = { start_done = false

How to find equivalent text in another with aggregated text?

Given: const textToFind = 'Lorem Ipsum has been the industry&apos;s standard dummy text ever since the 1500s, ' const paragraph = 'Lorem Ipsum has been the

How to negate a regex for pandas replace

In pandas I can search and replace all fields that contain the word fish, for example, using df.replace(r'.*fish.*', 'foo', regex = True). But how do I sear

Java string matching with wildcards

I have a pattern string with a wild card say X (E.g.: abc*). Also I have a set of strings which I have to match against the given pattern. E.g.: abf - false

Remove new lines from JSON

Consider I have the following string: { "{\n <<<-- error \"SomeKey\": {\n \"somevalue\": \"test\",\n, \"AnotherKey\": \"Long string shou

Parsing a user's SAML attributes via Foundry's Multipass or Control Panel

I want to add more metadata to last names in Palantir Foundry's Multipass for our users (for instance, to display Anna Smith, USA (Contractor)). My SAML integra

Apache Camel Split by start and end characters SOH and ETX

I have an spring boot application which have routes.xml being loaded on startup On the routes.xml, i have a MQ queue source that contains sample message SOH{123

Add quote to every item in a Python List

I have the following Python list from BeautifulSoup (for example): [Basketball, Ipad Pro, Macbook Pro, Racket] I need to add quote to every item in the list,

Extract string between combination of words and characters [duplicate]

I would like to keep the strings between (FROM and as), and (From and newline character). Input: FROM some_registry as registry1 FROM another_

Capitalize First Letter of Every Word inside Bracket

I'm trying to write some useful Regex for Tagscanner (a music tagger on Windows) and spent a bunch of time on regex101.com to fulfill my idea. In some language

How to use Grafana dashboard variable in another variables regex?

I created a Grafana dashboard variable and tried to filter the values via the regex field. This works for static regex definition. I would now like to use anot

how to fix this pac file javascript code with regex

I have some strings. 127.0.0.1:46977/safekids/permission_denied.html domain1.com/denied/permission_safekid.html domain2.eu/pkb/1144/niche/denied/permission_

How to make dot match newline characters using regular expressions

I have a string that contains normal characters, white charsets and newline characters between <div> and </div>. This regular expression doesn't wor

How do I remove the special characters within multiple lines in Regex?

I'm trying to solve a problem that wants to display the given text from a file omitting the special characters and modifying the multi-line input to a single-fo