Regex help
Posted: Thu Jan 23, 2014 5:09 pm
Hi;
I need to grab any the format ten numbers then a dot then jpg or png inside the {image}{/image} tag, for example :
1. {image}1390324469.jpg{/image} should return 1390324469.jpg without spaces
2. {image} 1390324469.jpg {/image} should return 1390324469.jpg without spaces
3. {image}unicode or non numbners characters1390324469.jpgunicode or non numbers characters{/image} should return 1390324469.jpg without spaces
This one "#{image}(.*?){\/image}#i", does only work in the first case and doesn't work in the second and third cases.
Thank you.
I need to grab any the format ten numbers then a dot then jpg or png inside the {image}{/image} tag, for example :
1. {image}1390324469.jpg{/image} should return 1390324469.jpg without spaces
2. {image} 1390324469.jpg {/image} should return 1390324469.jpg without spaces
3. {image}unicode or non numbners characters1390324469.jpgunicode or non numbers characters{/image} should return 1390324469.jpg without spaces
This one "#{image}(.*?){\/image}#i", does only work in the first case and doesn't work in the second and third cases.
Thank you.