Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $TextToParse="<html>{RT}sometext{TAG}somemore text{/RT}</html>"
- $regex = "(?s){RT}.*?{(.*?)}.*?{\/RT}"
- ## While there are still RT tags in the template keep doing code
- while ($TextToParse -match $regex) {
- $matches
- break
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement