Hi,
I am trying to match a text but I can't find the appropriate pattern.
I basically have the text:
<hello25>kjhgsadgdgldgagdsad</hello>
<hello>jkhkjhdhdshdhdkj</hello>
I am now using <hello25>(.*)</hello> and this is capturing:
kjhgsadgdgldgagdsad</hello>
<hello>jkhkjhdhdshdhdkj
but I want to capture:
kjhgsadgdgldgagdsad
I basically want it to stop the match after finding the first </hello> or a certain number of </hello>'s.
If anyone has any ideas please let me know!
Thanks
I am trying to match a text but I can't find the appropriate pattern.
I basically have the text:
<hello25>kjhgsadgdgldgagdsad</hello>
<hello>jkhkjhdhdshdhdkj</hello>
I am now using <hello25>(.*)</hello> and this is capturing:
kjhgsadgdgldgagdsad</hello>
<hello>jkhkjhdhdshdhdkj
but I want to capture:
kjhgsadgdgldgagdsad
I basically want it to stop the match after finding the first </hello> or a certain number of </hello>'s.
If anyone has any ideas please let me know!
Thanks

Comment