Announcement

Collapse
No announcement yet.

Regex problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Regex problem

    Hi,

    In File Comparison I seem to have trouble setting up a Replacement. I want to replace abcd101 with abcd104, abcd201 with abcd204 & so on. I'm trying to use following Replacement but it doesn't seem to work -

    abcd(.)01 -> abcd$104

    Other variants also failed to work -
    abcd(.)01 -> abcd${1}04
    abcd(.)01 -> abcd\104
    abcd(.)01 -> abcd\{1}04

    Please suggest.

  • #2
    Hello,

    For the above example, you would want to escape right after the $1, otherwise it would be detected as $104
    with:
    abcd(.)01 => abcd$1\04

    How does this work for you?
    Aaron P Scooter Software

    Comment


    • #3
      Thanks Aaron! That works.

      Comment

      Working...
      X