Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excluding pattern from regex
#2
if just need single replacement use flag 4
Function Function185
Code:
Copy      Help
s.replacerx("//" "" 4)

or
Function Function185
Code:
Copy      Help
str s=
;this is text with //a comment
;blah
;blah
;this is text with a link http://example.com
;this is text with //a comment also
;this is text with a link also http://www.example.com
s.replacerx("(?<!http:)//")
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)