Re: regexp - what am i missing???

2019-05-12 Thread Jan Erik Moström
On 12 May 2019, at 14:44, Jean-Christophe Helary wrote:

> first " in the line to the last " in the line.

Sigh, I was staring blindly at the last part ... thanks

= jem

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/687F84F0-7390-4BDB-977D-4A7DDF1AD6C6%40mostrom.pp.se.


Re: regexp - what am i missing???

2019-05-12 Thread Jean-Christophe Helary
Jan,

both  and ]+/> have a "(.*)" that matches 
the longest string, ie from the first " in the line to the last " in the line.

What you want is something like this: 

Jean-Christophe 

> On May 12, 2019, at 21:26, Jan Erik Moström  wrote:
> 
> I want to a simple search on a text like this
> 
> -
>  
> lkhlkhl
> 
> 
> 
>  
> 
> 
> -
> 
> where I want to pick out the file paths, in other words four matches.
> 
> I first wrote this expression "" but it matches both 
> items on the last lines (I don't understand why). I changed it to " src="(.*)"[^>]+/>" but with the same result.
> 
> What am missing?


Jean-Christophe Helary
---
http://mac4translators.blogspot.com @brandelune


-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/67696A16-65C6-4D3E-82E5-8301B961E81D%40gmail.com.


regexp - what am i missing???

2019-05-12 Thread Jan Erik Moström

I want to a simple search on a text like this

-
/> lkhlkhl


/>


/> alt="" />


-

where I want to pick out the file paths, in other words four matches.

I first wrote this expression "" but it matches both 
items on the last lines (I don't understand why). I changed it to "src="(.*)"[^>]+/>" but with the same result.


What am missing?

--
This is the BBEdit Talk public discussion group. If you have a 
feature request or need technical support, please email

"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/456832AC-B8BD-4B6A-A509-5D3D3EDFBA62%40mostrom.pp.se.