-6

I want to extract a substring from "<" to "xmlns" in

<?xml version="1.0" encoding="ISO-8859-1"?>
<XXXXX xmlns

then result is "XXXXX", only need 1 time. How can I do this?

Pham Huu Bang
  • 105
  • 2
  • 10

1 Answers1

-1
<[^>]+xmlns

Does the above regex help you? Check this answer as well https://stackoverflow.com/a/406408/5119047

Community
  • 1
  • 1
Vaspar
  • 566
  • 3
  • 9