can you please help me understand this regexp
Dear experts,
I got the code of the Web site only.
But I am not able to understand.
I know its very basic question and I need to us in the form of documentation.
Please help understand this code
with data_cell as ( select q'~[{"id":"1666","issueId":"ezsats:10000:1418145284747","sapId":"1101854","name":"INDIRA DEVU MD PC","createdBy":"Someone, Adam","dateAdded":"2014/12/09"}, {"id":"1667","issueId":"ezsats:10000:1418145284747","sapId":"1125031","name":"IL INDIRA DEVU MD PC","createdBy":"Someone, Adam","dateAdded":"2014/12/09"}]~' cell from dual ) select rtrim(regexp_replace(cell,'.*?"name":"([^"]*).*?}.','\1;'),';') from data_cell / () The subexpression (a.k.a. a submatch or group) and subexpressions may be nested to any depth. Parentheses (subexpresions) also capture the matched element into a variable that may be used as a backreference. (aka grouping or submatching) and their use as backreferences. The following is a set of iteration metacharacters (a.k.a. quantifiers) that can control the number of times the preceding character is found in our searches. The iteration meta characters can also be used in conjunction with parenthesis meta characters. . The . (period) means any character(s) in this position, for example, ton. will find tons, tone and tonneau but not wanton because it has no following character. ? The ? (question mark) matches when the preceding character occurs 0 or 1 times only, for example, colou?r will find both color (u is found 0 times) and colour (u is found 1 time). * The * (asterisk or star) matches when the preceding character occurs 0 or more times, for example, tre* will find tree (e is found 2 times) and tread (e is found 1 time) and trough (e is found 0 times). + The + (plus) matches when the preceding character occurs 1 or more times, for example, tre+ will find tree (e is found 2 times) and tread (e is found 1 time) but NOT trough (0 times).
Hello
Like John said, if you want to talk about the suggestion of someone, then it makes more sense to respond to this proposal in the same thread.
Try to split the term complicated part smaller, easier to understand, like this:
Select rtrim (regexp_replace (cell
, '.*?' || -any text (as low as possibble)
"« nom » : »" ||
'(' || -- \1 is ...
'[^"]*' || -0 or more characters, but without quotes
')' || -end \1
'.*?' || -any text (as low as possibble)
'}.' -a hug right, followed by any 1 character
, '\1;'
)
, ';'
)
of data_cell
;
This makes it more clear what you first do replaces
x 1 "name": "y' 'x 2}. with a little
There
where x 1 and x 2 can be anything, except that you do not want 'something' to include another instance of the model that you are replacing. That's why you should use
.*? instead of simply
.*
The '?' after ' *' makes No greedy, i.e. when there is a game of choice, as little as possible. (The default value for the regular expressions must be greedy, or match as much as possible.)
Note that this solution assumes there is exactly 1 "name" element in each set of braces. For example, if you have a string like:
"[{'name': 'A', 'name': 'B', 'name': 'C', 'name': 'D'}, {'foo': 'bar'}]' he returned.
' ONE; [{'foo': 'bar'}] "The solution more complicated that I posted in response on the original thread #3 returns
' ONE; B; D"
Note also that none of them not what you asked.
Tags: Database
Similar Questions
-
My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?
I have Windows XP.
really grateful for any advice.
Concerning
Spender 9
OE uses IE settings. Then configure things in IE (margins and others) and it should then apply to the when you print from OE.
Steve
-
Why are publish you again? You must first answer the question I ask in your original thread.
-
Hello.
I'm enable to launch my CC of Muse Acrobat after I updated 2014.3 for 2015, its says adobe cc muse has stopped working.
Can you please help me on this problem.
Thank you.
Replied to your previous post on the same topic.
Thank you
Sanjit
-
I've always been able to open my emails and access their content using Firefox. Now, this morning, I can no longer access the content of my emails, but can still open.
I called "virginmedia" that me told to try to use Solution Explorer, who has worked, and I was told that the problem was with Firefox.It is not ADP, is ABP = d lockB has Pread
AdBlock Plus itself does not actually block anything it's the filters that are blocking. Changing to a subscription different could fix this, or just find out what filter blocks that you want to see or load.
Each filter can be disabled in itself to eliminate the problems like this. In the preferences of the ABP, look at the column "Last shot" after loading reloading the page to see which filters have been used to block items listed on this page - date & time. Selectively disable the filters that were used at the end, to understand that we block you want to see. Uncheck Enabled to disable this filter.
Then, contact the Manager of subscription lists and report filter that is causing your problem, which can be fixed for everyone using this subscription. Contact information is probably at the beginning of the filter list in the preferences.
! Please report any unblocked adverts or problems ! in the forums ( http://forums.lanik.us/ ) ! or via e-mail ( [email protected] ).
Here again, if anyone else has reported this problem will be fixed automatically the next time that your subscription is updated, the update frequency is 5 days for the most popular filter lists. You can do a manual update in the menu Filters > update all subscriptions in the preferences of the ABP.
-
can you please help I am running windows vista Home premium and letters on the keyboard are in french is my question mark key e, what is the problem and how to fix it thanks Dan
Your keyboard is set to french. To resolve this problem, look at the right hand of the bar at the bottom and you will see a keyboard. Click on it and press U.S..
I hope this helps. -
I had an old computer 32-bit Windows XP Professional
All files and folders have been saved on the drive hard portable Western Digital and CD.
I can't open the data in my new computer with Windows 7 Home premium 64 bit preinstalled by the vendor.
The old computer is down. I can't access my saved data.
Can you please help.
Thank you
Hey riri,.
Thanks for choosing Windows and thank you for providing an opportunity to help you.
According to the description, you have problems to restore backup data from Windows XP to Windows 7.
What application did you use to back up data?
Perform the steps from the link below and see if it is resolved.
http://TechNet.Microsoft.com/en-us/magazine/ee851568.aspx
Answer to us if you are having problems with the restoration of data or any question of Windows, and we would be happy to help you.
Good day!
Hope this information helps.
-
Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving this handler does not run both source and target, can you please help me. Thank you
Hello
The setting should be as below, and not only the port number should be...
PORT 7809
Kind regards
Veera
-
Can you please help me to transfer my registration of product to my new adobe account? I have my serial number.
Hello
Sorry for the delay in reply!
Please refer to this https://helpx.adobe.com/x-productkb/policy-pricing/transfer-product-license.html
You can contact our support chat to here too: https://helpx.adobe.com/contact.html
Let us know if this helps!
-
I signed up for Adobe Reader DC today and you want to cancel. Your cancellation process is horrible. He takes me into a closed loop, bringing back me to the instructions, but do not allow me to cancel. Can you PLEASE help me to cancel this product?
Ellen Lutz
Hi ellenl71853837,
Please follow this link to Contact Customer Care, sign in using your Adobe ID (in which you have the subscription), click on "still need help? Contact us' button & initiated a discussion with our customer service team.
Kind regards
Nicos
-
I tried to load Flash Player on my XP computer but have of find undesirable equipped engines, namely Binkiland and Bing, neither of which I wanted to and I can't delete them because they do not appear in the list programs. Can you please help.
Hello Maria,.
Thank you very much for the link, which worked well. Some of the other times that I tried to load Flash Player were presented by the site and also the search engine. You will understand that I am not very computer savy!
Once again thank you.
Chris.
-
I have 2 accounts of adobe Setup and want to merge to 1. My Behance site is a different connection/e-mail than my creative cloud. So... When I'm connected to CC, I can't see my Behance site and updated. Can you please help?
Please contact our support staff from the following link for assistance on this subject: https://helpx.adobe.com/contact.html
(be sure to connect to adobe.com with your Adobe ID first)
-
Hello - I would like to cancel my subscription. Can you please help?
Hello - I would like to cancel my subscription. Can you please help?
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)Creative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html -
Can you please help me with the manufacturing of the year and the month of the following computers portable
[Personal information]
Hello:
Take a look at the first serial number you posted...
The 4th character from the left is the year of manufacture.
In the first case, it is either 2005, 2015 according to the model (that would be obvious based on the hardware of the laptop has, or when you bought).
The characters of 5th and 6th from the left indicate the week of manufacture.
If you need to take another look at the first serial number because 3-b is probably a 38 (which means the 38th week of the year). Like all the others who have two numbers in the 5th and 6th places.
The 38th week of the year is sometime in September.
-
I can't access hp hp630 bios setting... I do not know my password... can you please help.
Hello
Enter 42444370
Kind regards
DP - K
Maybe you are looking for
-
'' If '' dosnt works at the mathscript node
Hello I have a strange problem in mathscript node, can u help me? I just wrote a simple conditional style in the mathscript node, but it dosent work and have attached the error! my software has problem? Best Regarsd Behzad
-
My laptop goes down when I try to play games. Internet works fine however.
My laptop fell down while trying to play WoW, Civ, RATW, and Spore.I done a virus scan mcafee says the computer is clean. Internet seems to work very well as well.
-
Cannot download updates - stuck on 0%
original title: I recently had to reinstall vista, now I can't update. Can anyone help? Hi I had to reinstall vista as it would not start due to malware. Now I can't update, he remains stuck on 0% downloaded. Any ideas? Thank you
-
I want to put Vista Ultimate 64-bit OEM on my Sony Vaio VGN-FW21E which has Vista Home Premium 32 bit installed. I intend to do a clean install. My question is I am able to restore the settings of Vista 32 bit and the factory once I installed Vista 6
-
'Angle of the camera' and 'Camera Label' missing fields in the metadata Panel
So very glad to see that first Pro CC 2015 supports the transfer of the track when creating source multi-camera sequences. It can use either label camera or the metadata camera Angle.Unfortunately, the metadata Panel does not offer these specific fie