Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. $TextToParse="<html>{RT}sometext{TAG}somemore text{/RT}</html>"
  2. $regex = "(?s){RT}.*?{(.*?)}.*?{\/RT}"
  3.  
  4. ## While there are still RT tags in the template keep doing code
  5. while ($TextToParse -match $regex) {
  6. $matches
  7. break
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement