Here is the data
[StupidHtml]: AZaz.-09^abcdabcd^a^a^
I need a regex to retrieve data between [StupidHtml]:
and first occurrence of ^
Currently I am using
(?<=\[StupidHtml\]\:)(.*)(?=\^)
But that results in:
AZaz.-09^abcdabcd^a^a
I need to achieve Azaz.-09
Make your regex less greedy by using (.*?)
instead of (.*)
:
\[StupidHtml\]\:(.*?)\^
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With