| View previous topic :: View next topic |
| Author |
Message |
rockit0
Joined: 06 Oct 2006 Posts: 22
|
Posted: Sun Nov 25, 2007 1:19 pm Post subject: Regex Question |
|
|
This is my var:
{
...
<pages>
<page> docs/gm_23703/143701.jpg </page>
<page> docs/gm_23703/143711.jpg </page>
<page> docs/gm_23703/143721.jpg </page>
<page> docs/gm_23703/143731.jpg </page>
</pages>
...
}
how can i get the number 143701 using regex?
OBS: If i want the last one (143731) i can use "m).*/([0-9]+).jpg" but how can i get the first one?
thank's
Last edited by rockit0 on Mon Nov 26, 2007 4:25 pm; edited 2 times in total |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Sun Nov 25, 2007 1:28 pm Post subject: |
|
|
Use the same regex as the last one but remove the m).* part. _________________
 |
|
| Back to top |
|
 |
rockit0
Joined: 06 Oct 2006 Posts: 22
|
Posted: Sun Nov 25, 2007 1:35 pm Post subject: |
|
|
| Thank's Titan |
|
| Back to top |
|
 |
rockit0
Joined: 06 Oct 2006 Posts: 22
|
Posted: Mon Nov 26, 2007 4:23 pm Post subject: |
|
|
Sorry. I developed this "m).*/([0-9]+).jpg" using AHK RegEx Teste v2.1 but when i put in autohotkey script it doesnt work.
"m).*/([0-9]+).jpg" and "/([0-9]+).jpg" return the same result (143701)
Só, how can i get the last one 143731 using Regex ? |
|
| Back to top |
|
 |
|