Skip to main content
Filter by
Sorted by
Tagged with
-3 votes
1 answer
44 views

How does this sub() function work? I expect the opposite [duplicate]

Why does the following Python code substitute currency characters and commas, when the code appears to me to do the opposite? Decimal(sub(r'[^\d.]', '', '$4,987,200.04')) If I read the regex ...
3rdrockdata's user avatar
-3 votes
0 answers
32 views

Don't match a subdomain / multi-level subdomain that ends with xyz.example.com using regex [closed]

This is my regex: (https?|ftp)://((?!wm\.)[^/]+\.)*(localhost|win|tplinkwifi.net|tplinkrepeater.net)/ These should be captured: http://win/myprofile http://localhost/myprofile http://ss.localhost/...
CodePanda's user avatar
  • 134
-2 votes
0 answers
47 views

How to support regular expression-based search in SQL Server? [duplicate]

I have this query for MySQL: SELECT TABLE_NAME AS old_name, REPLACE(TABLE_NAME, 'survey', 'responses') AS new_name FROM information_schema.tables WHERE ...
Lajos Arpad's user avatar
  • 77.7k
0 votes
1 answer
15 views

Regex formula to split alphanumeric string into 2 columns [duplicate]

sorry a bit of a newbie with python and regex. I have the following data- | Size | | -------- | | 2L | | 200g | | 1000L | |3kg | I would like a column of the number and ...
FarmerScott's user avatar
-3 votes
1 answer
67 views

Using UK Postcode Regex formula in SQL WHERE Statement [closed]

I'm looking to write an SQL rule for UK postcodes that check that Postcode data is legit. I know this is the official UK Postcode regex code, but how do I put this into a WHERE statement. What I need ...
Carl Palmer's user avatar
-1 votes
1 answer
81 views

java regex \\S matched whitespace [closed]

String s = "abc =123"; int DEFAULT_PATTERN_FLAGS = Pattern.CASE_INSENSITIVE | Pattern.DOTALL; Pattern p = Pattern.compile("(\\S[^=]++)\\s*+=\\s*+(\\S++)", ...
Furyegg's user avatar
  • 416
0 votes
0 answers
50 views

GeneratedRegex("[a-z]") appends '\u212A' to the "a-z"

Here is my code: public const RegexOptions MyRegexOptions = RegexOptions.IgnoreCase | RegexOptions.IgnorePatternWhitespace | ...
Valo's user avatar
  • 2,058
-5 votes
0 answers
67 views

Regex ‘priorities’ for searching and groups? [duplicate]

Is it possible to prioritise some search patterns in regex over others when using | OR ? I am trying to retrieve some patterns from several text inputs below , but I can’t get the output I desire ...
blam's user avatar
  • 87
0 votes
4 answers
131 views

regex for matching a pattern with an optional part

I need a regex pattern to find substrings of the form "a:<some integer>" and an optional "b:<some float>" in a large string. The "a" string may be preceded ...
user1479670's user avatar
  • 1,319
0 votes
0 answers
28 views

regex match exact string or string with specific next character [duplicate]

I want to test a string for something like 'UNIT_40' or 'UNIT_40\' but want to exclude strings like UNIT_4080. I can search for 'UNIT_40$|UNIT_40\\' but is there a less redundant way to craft the ...
badbob001's user avatar
-1 votes
0 answers
46 views

Regex to find string without substring in the middle [duplicate]

I want to match all strings that start with aaa and end with bbb but dont have aaa in the middle. For example, I want to match aaa fff bbb or aaa iiiii iii iii bbb but I dont want to match aaa ggg aaa ...
Sitepor500.com.br's user avatar
-3 votes
0 answers
49 views

Fetch specific string inside double brackets [closed]

Using the following regex \{{.*?\}} to match any strings inside double brackets. However, I need to modify it to fetch a specic string inside those brackets `5 => {{instance.label}}` I'd like to ...
David Garcia's user avatar
  • 2,698
-1 votes
1 answer
47 views

regex with \b\Q \E\b [closed]

Why doesn't the regex \b\QWor+d+\E\b match the string Wor+d+, even though \b\QWor+d\E\b matches the string Wor+d?
Robert Paszkiewicz's user avatar
-1 votes
0 answers
44 views

how to convert Markdown lists to HTML in JavaScript [closed]

i really have no idea how to convert Markdown list to HTML and i need to do it not using any js package i already implemented most of tags but im having really hard time with lists i manage to get ...
slicnake's user avatar
0 votes
0 answers
109 views

detecting name that splits across two lines in a column php

I have approched in the following way $parser = new Parser(); $pdf = $parser->parseFile($_FILES['pdf']['tmp_name']); $text = $pdf->getText(); // Normalize NBSP → plain space $text = ...
h25's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
17410