Category "regex"

How to write a regex capture group which matches a character 3 or 4 times before a delimiter?

I'm trying to write a regex that splits elements out according to a delimiter. The regex also needs to ensure there are ideally 4, but at least 3 colons : in e

Regex for 16 hex char string that contains at least one letter

I want to write regex to recgonize a hex string with length of 16 bytes, for example: 1a2b3c4d1a2b3c4d The following answers is NOT correct: [0-9a-fA-F]{16} b

Regex for 16 hex char string that contains at least one letter

I want to write regex to recgonize a hex string with length of 16 bytes, for example: 1a2b3c4d1a2b3c4d The following answers is NOT correct: [0-9a-fA-F]{16} b

Remove underscore and number at the end of string

I am working with a dataset that has column with some underscores. There is a patter to it but they are different patterns, as shown below ID Col1 1029

How to validate a character set in terraform variable?

i need to validate a variable in terraform. The content of the variable should be only 0-9, a-z and A-Z. Im tried it with following code: variable "application_

Word boundary with words starting or ending with special characters gives unexpected results

Say I want to match the presence of the phrase Sortes\index[persons]{Sortes} in the phrase test Sortes\index[persons]{Sortes} text. Using python re I could do

Regex to match code with fixed country code and variable wildcard usage

I need to implement a regex which cover several requirements. These are the following: A length restriction to max 8 chars should be done (with or without wildc

SQL: Use RegEx to return multiple substrings of a specified string in column

I am querying metadata on Snowflake which contains a column of queries: select query_name from metadata query_name SELECT * FROM SYSIBM.SQLCOLUMNS SELECT * FR

Dart support for using Script Property Values in Regular Expressions

The Unicode regular expression documentation describes doing complex matches for text. Specifically, I am wondering about matching various scripts within a stri

assertj recursive comparison ignoring regex failing after upgrade from 3.18.1 to 3.21.0

I have updated my springboot , along with that my assertj also seems to have upgraded. Now the test which was initially working in the older version is failing.

RegEx for email with only one special character

I am trying to modify a regex for emails (gmail) that should contains special characters like _%+-. but only one, not more I made 2 test cases below that are bo

How do I use regex to remove substring before a pipe in pandas dataframe?

In cna pandas dataframe, for all values of Hugo_symbol column, if there is a pipe (|) followed by "ENSG*", remove everything before the pipe. My code: import re

Delete a word from a string which contains hashtags

I have already done a lot of "filtering" with regexp to remove unwanted characters from a string, this is what i am using: var regexpHashtag = new RegExp(/(?:^|

How can I add an epsilon move to FSM using Python?

I am using the greenery module to implement an FSM: from greenery import fsm, lego E, O = range(2) z, o = '0', '1' # Create the FSM machine = fsm.fsm( al

Difficulty in create regex [duplicate]

40 I'm having trouble checking in React Js if a value is is any of the following combinations no spaces in starting Ramaining accept anything(

@typescript-eslint/naming-convention ignore object inside a classname

tl:dr, why is this REGEX incorrect : classNames.*(.*{(?:.|\n)*?}) although it work in regex101 ? I am using typescript with eslint. I setup some naming conventi

Does Node.js support the String.MatchAll method?

When I test the code: let result = 'heymama'.matchAll(/m(a)/g); I get the error "'heymama'.matchAll is not a function" When I run the version: let result =

How to get part of string from regex in Java

For example, I have string with range of earnings: 5 000-10 000 USD and i want to extract from that string minimum and maximum value. I prepared regexes, for e

How do i write a RegEx that starts reading from behind?

I have a series of words I try to capture. I have the following problem: The string ends with a fixed set of words It is not clearly defined how many words the

How do I change the values in a pandas column that are selected by a regex?

I'm cleaning up data for a personal project and am standardizing the large number of categories. The seemingly low hanging fruit have similar enough names such