Category "regex"

How to format a text field javafx

I would like to be able to enter the time in a javafx text field in the format hh:mm:ss. How would I go about formatting the text field? I already got the regex

How to format a text field javafx

I would like to be able to enter the time in a javafx text field in the format hh:mm:ss. How would I go about formatting the text field? I already got the regex

Nginx regex location not matching

I am serving some services on an Ubuntu VM using Nginx 1.14.0. In my server definition, I'm including a location block designed to forward requests from /api/v{

Nginx regex location not matching

I am serving some services on an Ubuntu VM using Nginx 1.14.0. In my server definition, I'm including a location block designed to forward requests from /api/v{

Can these regexes cause catastrophic backtracking? [duplicate]

I'm new to regexes. I am using these regexes throughout my android project. Can any of these cause the catastrophic backtracking? To check for

How to get the variable value inside sigle quote by variable name using php [duplicate]

I need to get the value of the given variable name without quotes(''). Is it possible with php? variableName='value' I think using preg_match

Google Tag Manager - Regex match

I want to check if a specific string is included in a GTM variable. The value of this variable is a first-party-cookie value decoded via URI looking like this:

REGEXP word match

I have a script where I am attempting to match a new jobtitle to an existing one in the database. SELECT a.title AS JobTitle, j.Description AS MatchedJobTitle

How do I make part of a regex match optional?

This is an example string: 123456#p654321 Currently, I am using this match to capture 123456 and 654321 in to two different groups: ([0-9].*)#p([0-9].*) B

Java regex repetition not allowed inside lookbehind

I am looking for a way to split a string after every 3rd comma. I have found an old answer from 2013 Split a String at every 3rd comma in Java which I think is

Rewriting url without a speicifc query parameter using regex

I'm trying to rewrite the URL without a specific query string https://example.com?specialVar=xXx1x&para1=xxxx&specialVar=1234&para2=xxxxxx&speci

Replace every sequence of letters with a random word

I created a list of random words: library(OpenRepGrid) list_of_words <- randomWords(100) list_of_words <- gsub("[^A-Za-z ]", "", list_of_words) list_of_wo

How to convert (aa)^* U (bb)^* to regex in python?

I am doing a textbook problem and I am trying to understand how regex works with Python. In python, I tried doing: "(aa)*|(bb)*" I seem to be accepting any stri

Regex for duplicate words in a string with one of them with a apostrophe in Angular

I want to create a regex for a requirement, a string is having duplicate words but in that duplicate words one is with a apostrophe. For example: EXCHANGE CORRE

How to extract only domain country from URL (Data Studio / regex)

I'm struggling with extracting from URL only country for example .pl from https://www.google.pl. At this moment I'm able to extract google.pl from provided url

How to formate or validate date in java like 20992012 or 12122022? [duplicate]

i have to validate date yyyyMMdd or MMddyyyy or ddMMyyyy. if i pass input 20221224, ho to make this is valid? but how can i do this in regex

Apply negative lookbehind to the entire group before it

I want to capture the model of a phone but not the storage in the title. So I don't want the regex to match xxxGB. I am expecting to match: iphone 13 from: "iph

Apply negative lookbehind to the entire group before it

I want to capture the model of a phone but not the storage in the title. So I don't want the regex to match xxxGB. I am expecting to match: iphone 13 from: "iph

VSCode snippet regex for extracting directory and replacing slashes?

I'm struggling to find a VSCode transformation regex that allows me take a string like this:MyProject.Api/Data/RandomPath/Entities/User.ts and produce:MyProject

Chatbot-specific answers

I'm creating a chatbot that asks questions and answers questions, but for now it doesn't have a specific function of answering specific questions that it asks i