Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Syntax for findrx/replecerx
#3
This is a simplified version of what I am trying to do

Code:
Copy      Help
str md
str pattern = ", (MD|DDS|NP|PHD)"
md.replacerx(pattern "")

Whether the initial version of md is
md = "John J Doe, MD"
or
md = "John J Doe, DDS"
or
md = "John J Doe, NP"
or
md = "John J Doe, PHD"

I want the final version of md to be "John J Doe"

I am not sure why my regex is not working. Any ideas?

Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)