Hi Prashant

A very good site to test regex is Regex101 <https://regex101.com/>. For
some reason it is showing engine error for me now. But it will give you a
description of the regex. Here is how I would describe the pattern:

   - good – Match "good" exactly
   - [^"]* – 0 or more of any character except double quote (greedy)
   - " – Quote character
   - [^"]* – 0 or more of any character except double quote (greedy)

Does that help?

On Wed, 13 Jul 2022 at 12:56, Prashant Maheshwari <[email protected]>
wrote:

>
> If you don't mind my followup questions
> good[^"]*"[^"]* Will give you:
>
> This one reads
> 1. Match good
> 2. Ignore first Inverted Comma after good ??--> I'm sure I'm wrong
> 3. Match everything till Inverted Commas (greedy) -->???
> 4. Ignore Inverted Comma again
>
>
>
> On Tuesday, July 12, 2022 at 7:32:56 PM UTC+5:30 Ulrich Kapp wrote:
>
>> Try this:
>> Search pattern:  "\b(.*)(")(.*)\b“
>> Replace pattern:  "\1\3“
>>
>> This changes  "good for me",yo“ to  "good for me,yo“
>>
>> And then:
>> Search pattern:  (\w),(\w)
>> Replace pattern:  „\1, \2“
>>
>> To change "good for me,yo“ to "good for me, yo“
>>
>> Hope I understood your need.
>>
>> Ulrich
>>
>> Am 11.07.2022 um 21:28 schrieb David G Wagner <[email protected]>:
>>
>> good[^"]*"[^"]* Will give you:
>>
>> good for me",yo"
>> On Jul 11, 2022, 10:13 -0700, Prashant Maheshwari <
>> [email protected]>, wrote:
>>
>> I can extract all text between good and quotes by search good.*"
>>
>>
>> How to modify to extract between two quotes starting from good
>> good for me",yo
>>
>>
>>
>>
>>
>> hello how are we doing my brother "good for me",yo","what you say?"
>>
>>
>>
>>
>> --
>> This is the BBEdit Talk public discussion group. If you have a feature
>> request or need technical support, please email "[email protected]"
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/bbedit/51853ddb-e1ad-4959-8b3a-0406dd7934cen%40googlegroups.com
>> <https://groups.google.com/d/msgid/bbedit/51853ddb-e1ad-4959-8b3a-0406dd7934cen%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> --
>> This is the BBEdit Talk public discussion group. If you have a feature
>> request or need technical support, please email "[email protected]"
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "BBEdit Talk" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/bbedit/5aa37792-41cf-413f-a35d-ba5cfc9d7981%40Spark
>> <https://groups.google.com/d/msgid/bbedit/5aa37792-41cf-413f-a35d-ba5cfc9d7981%40Spark?utm_medium=email&utm_source=footer>
>> .
>>
>>
>> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "[email protected]"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/801cea39-db13-4f30-81ff-1fe1f06c29e0n%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/801cea39-db13-4f30-81ff-1fe1f06c29e0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalley.io> ● Twitter
<https://twitter.com/rivervalley1000> ● LinkedIn
<https://www.linkedin.com/in/bazargankaveh/> ● ORCID
<https://orcid.org/0000-0002-1414-9098>
*Accelerating the Communication of Research*

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAJ2R9pgW1bbg%3DrVXyHR7bhdRhLhz8rFzN7e%2BatmMUrC5qCp0qw%40mail.gmail.com.

Reply via email to