Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
309 views

1. What SGF is SGF is what's widely used to save Go (board game) games as text. In essence, it's basically the text encoding of something like a tree. Here's an example of what it looks like — I ...
psygo's user avatar
  • 7,853
-1 votes
1 answer
123 views

SGF is what's widely used to save Go (board game) games as text. One example of how it saves its data is this — as a whole, SGF is a text-based representation of a trie, which means it is recursive, ...
psygo's user avatar
  • 7,853
0 votes
1 answer
45 views

In the text below, I am trying to match \rem{lp}{some text with nested curly braces}. The regex101.com example works for the regex: ([^\s]*\s*)\\rem\{(?:lp|db)\}(\{((?>[^{}]|\n|(?2))*)\})(\s?[^\s]*)...
atapaka's user avatar
  • 1,400
1 vote
1 answer
83 views

I'm trying to write a RegEx to capture a Pascal procedure's body. My biggest problem so far is capturing a procedure which has a nested procedure inside. Test string: Test procedure A; procedure B;...
Bruno Kinast's user avatar
  • 1,208
-2 votes
2 answers
213 views

this is my first question on stackoverflow so please bare with me here. Also I am not a native english speaker. (16.02.2022) ANSWER (https://regex101.com/r/4FRznK/1 from Comment on Answer). Special ...
Fastdesigner's user avatar
0 votes
0 answers
140 views

For a regex that support only +,?,*,.,|,[..],[^..],^,$,(..), a matcher that lets you match recursion: {<some-regex-name>} with length m, and a string of length n. (the regex isn't supporting ...
Ofek's user avatar
  • 1,150
0 votes
0 answers
87 views

This query against the Wikidata SPARQL endpoint returns the Wikitext content of the first 50 files in the Wikimedia Commons category "1930s photographs in Auckland Museum". For each file, I ...
Hugh's user avatar
  • 73
2 votes
2 answers
995 views

I'm trying to catch all numbers from a string using Python regex. By numbers I mean integers and floats (using , or .). I managed to get it done using this regex : ([0-9]+[\,|\.][0-9]+|[0-9]+) But I ...
cuzureau's user avatar
  • 380
0 votes
2 answers
101 views

I have been trying to get the separate groups from the below string using regex in PCRE: drop = blah blah blah something keep = bar foo nlah aaaa rename = (a=b d=e) obs=4 where = (foo > 45 and bar =...
Frosty's user avatar
  • 728
0 votes
2 answers
83 views

I want to replace all the strings with DISPLAY="TRUE" to DISPLAY="FALSE" in the first line and vice versa in the next line in a single match. Example: FROM: <SYN DISPLAY="TRUE" SEARCH="TRUE" ...
Devops Thrones's user avatar
1 vote
1 answer
72 views

Sorry if question is confusion. From below text value = ( select max( tbl.column_name ) from table tbl where trim(colum2)='value1' and (trim((colum3)))='value3') I want output below select max( tbl....
Siva's user avatar
  • 13
0 votes
1 answer
1k views

My target data/table: mysql> select firstname from empl; +-----------+ | firstname | +-----------+ | Abhishek | | Arnab | | Aamaaan | | Arbaaz | | Mohon | | Parikshit | | Tom | ...
mysqlrockstar's user avatar
0 votes
1 answer
2k views

I am trying to extract a set of numbers from comments like "on april-17 transactions numbers are 12345 / 56789" "on april-18 transactions numbers are 56789" "on may-19 no transactions" Which are ...
Maverick's user avatar
  • 407
1 vote
1 answer
168 views

I am attempting to write a program that validates documents written in a markup language similar to BBcode. This markup language has both matching ([b]bold[/b] text) and non-matching (today is [date])...
Elizabeth's user avatar
  • 499
3 votes
3 answers
313 views

I'm writing a simple regular expression that needs receive a pair of coordinates and/or a map name. For example: move 10 15 # should returns [[10, 15]] move 10 15 map # should returns [[10, 15, 'map'...
macabeus's user avatar
  • 4,722
1 vote
1 answer
1k views

I have a url that contains two values, a keyword and a location name. The keyword comes after the '/r/' and the location after the '/l/'. E.g: localhost:3000/search/r/keyword/l/location To get only ...
Cédric Bloem's user avatar
0 votes
1 answer
33 views

I'm basically working on custom query building. I've designed the pattern as field_set and sub_field_sets. A sample Query: ({e:3}.{f:44}.{f:2}) + ( ({e:3}.{f:44}.{f:3}) + ({e:3}.{...
Sarmad's user avatar
  • 315
3 votes
1 answer
1k views

I'm trying to learn about Recursion in Regular Expressions, and have a basic understanding of the concepts in the PCRE flavour. I want to break a string: Geese (Flock) Dogs (Pack) into: Full Match:...
rsylatian's user avatar
  • 429
0 votes
0 answers
25 views

I managed to extract a list of the text within square brackets within an emoji list I have here: https://regexr.com/3sqk1 But now I need to extract the equivalent decimalSurrogateHtml pairs for each ...
deeve's user avatar
  • 123
2 votes
1 answer
58 views

I was trying to find the answer on the Net but I was not able to. Does the third section on this page applies to PHP / PCRE or not? https://www.regular-expressions.info/recursebackref.html the "...
user avatar
3 votes
3 answers
432 views

I've been running around internet trying to find out how to build a regular expression to capture text in the way I need it; so I saw some StackOverflow questions but none of them express what I want, ...
Larry's user avatar
  • 106
6 votes
3 answers
671 views

I am trying to capture some text before and after a C-style code block using a Perl regular expression. So far this is what I have: use strict; use warnings; my $text = << "END"; int max(int x,...
tjwrona's user avatar
  • 9,097
4 votes
2 answers
292 views

I'm trying to write a recursive regular expression to capture code blocks, but for some reason it seems to not be capturing them properly. I would expect the code below to capture the full body of the ...
tjwrona's user avatar
  • 9,097
5 votes
2 answers
327 views

This is a followup to this question. Have a look at this pattern: (o(?1)?o) It matches any sequence of o with a length of 2n, with n ≥ 1. It works, see regex101.com (word boundaries added for better ...
Imanuel's user avatar
  • 3,667
1 vote
1 answer
96 views

I am trying to match C++ argument type which can contain balanced <and > characters. With this regex: (\<(?>[^<>]|(?R))*\>) On this string: QMap<QgsFeatureId, QPair<QMap&...
Denis Rouzaud's user avatar