Get sql the property and field names regex [closed] - regex

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 days ago.
The community is reviewing whether to reopen this question as of 6 days ago.
Improve this question
I have regex:
(?:(\(\n\s*\[)|(?:,\[))(?<field>.*?)\]\s*(?<properties>.*\n.)
it's working partially as shown here:
https://regex101.com/r/5o3o1f/1
The problem being that my regex so far doesn't capture the data type description if that's interrupted by a newline like in those 2 cases I highlighted in the picture shared.

Related

Simple regex to match "word" or "word/" [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 days ago.
Improve this question
I have been trying with ^(word?(\/))$ but no success
There is no need to consider quotation marks
You should try:
^word\/?$
See this demo

How to get catch regex group in ZSH? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
This post was edited and submitted for review 4 days ago.
Improve this question
I have an if statement with regex, and I catch some groups in order to check the values.
So I'd like to know the equivalent of $BASH_REMATCH[$i] in ZSH.
Charles Duffy gave me answers to this question with a link telling me that the equivalent is $match[$i].
Thanks to him, and to the other advices he gave me.

Extracting a word between two parenthesis regex [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I am trying to extract word General using Pyspark regex from the following string:
:52.089;emailI_Pm|T(General)|20000;ml2736
How can I do it?
Thanks
re.match(r".*\((.*)\).*", ":52.089;emailI_Pm|T(General)|20000;ml2736")[1]

I need a regex for the following combination [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
mission_id: a498094578a
mission_id: a493453456
mission_id: 498343454a
mission_id: 34534535345
From the above 4 mission_id's I need your help in writing a regex pattern which covers all the four mission_id but need to select only the numbers.
So one the first one - need to exempt 'a' and only the numbers.
mission_id:\s*\w?(\d*)\w?
That should work; maybe add any flags you need for parsing multiline text or whatever.
www.regexr.com is a great resource for trying out RegExps

What's the regular expression for regular expressions? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Ok, so it's late on a Wed night and this is for no good reason. But I'd like to see one in any dialect, if it exists, just to be impressed.
[Rr][eE3][gG][uU][Ll][aA4][rR]\s[Ee3][xX][pP][rR][eE3][Ss5]{2}[iI1][Oo0][nN][sS5]