Category "regex"

how can i use re.findall to match a substring using python regex?

I have the following string variable called strSourceCode in python3.x, 'uint256 private constant _tTotal = 100000000 * 10**9; uint256 private _rTotal = (MAX -

SQL formula to match all words in any order in just one statement

I would like to have a SQL formula to match all the words in a query in any order without using multiple 'AND like' statements. For example, the query 'cat dog

Easiest way to test vim regex?

I'm trying to write a vim syntax file, one problem I'm dealing with is vim's regex syntax is different from most other languages(I think the one called "perl co

How to match a string's end using a regex pattern in Java?

I want a regular expression pattern that will match with the end of a string. I'm implementing a stemming algorithm that will remove suffixes of a word. E.g. fo

Log Parsing with Regex

I'm trying to parse an Apache Log with regex using Python and assign it to separate variables. ACCESS_LOG_PATTERN = '^(\S+) (\S+) (\S+) \[([\w:/]+\s[+\-]\d{4})

Why all the test cases are not getting passed for the below question?

The Coding Question which I am trying to solve is this. I tried to solve but not all the test cases passed I am not able to find what could be the reason? Iden

Regex multiline matching

I was wondering if it's possible to make a regular expression to find all of the text that is in between the following two strings: mutablePath = CGPathCreateM

SearchView not calls onQueryTextChange on second dot

My Activity has SearchView, which should have filtered query. I am filtering it via onQueryTextListener. Idea is that disable typing not allowed chars, like dot

Regular Expressions | Restrict Possible Usernames

Question Here are some simple rules that users have to follow when creating their username. 1) Usernames can only use alpha-numeric characters. 2) The only n

Replace all but last instance of specified character

If I have a string like 10,000kg crane,21 how should I strip all commas but the last to get 10000kg crane,21 I'm thinking this is a regular expression problem

Removing beginning of a string until the first instance of a specific character

I have a script that compiles an .exe file and runs the --tree=all of that .exe. This returns the directory where the file is stored and I want to use that path

Perl splitting on multiple occurrence of the same pattern

I wrote the following Perl script to split on multiple occurrences of the same pattern. The pattern is: (some text) This is what I've tried: foreach my $line

Using REGEXP_Substr in db for more than one condition

Hi i'm using SQL Query in ORACLE db. How can i use the function REGEXP_SUBSTR (oracle SQL) to create a new column with name "VOIE" that contains just the type o

Python regular expression for consonants and vowels

I was trying to create a regular expression which would allow any number of consonants , or any number of vowels , or a mix of consonants and vowels such that w

jenkins builds filtering based on build description

Is there a way to filter out a job's builds based on description matching with build name. Each build name is set by build name setter plugin, and want to filte

Regex expression for parsing SQL Server schema and tablename

I am trying to parse schema and table name using a regular expression. I am using C# (.NET Core) and System.Text.RegularExpressions. Here are examples how the

Regular Expression Wildcard Matching

I have a list of about 120 thousand english words (basically every word in the language). I need a regular expression that would allow searching through these

Substitute integers and dots with regex [duplicate]

I have the following string and I need to substitute the numbers and dot with a star: FOO_BAR_FOOBA_1_R:FOO_1.0 I tried the following but I j

Regex to replace all password with ***

I have the following json: Data: {"Account":"d\\adm","Password":"cWExZjEiMTM="},"SqlServer":{"InstanceName":"","MachineName":"MyMachine","Port":null} I would

How can I extract a number from a string in JavaScript?

I have a string in JavaScript (e.g #box2) and I just want the 2 from it. I tried: var thestring = $(this).attr('href'); var thenum = thestring.replace( /(^.+)(\