Skip to main content
Nintex Community Menu Bar

Removing specificly placed character using Regex

  • August 30, 2018
  • 2 replies
  • 21 views

Forum|alt.badge.img+8

Hello I feel this is fairly simple but I can't find anything on it. I know how to remove certain characters and a certain amount of characters before or after a character. But in this case I want to remove a certain character. 3 from the right. In other words K1czam15 the M needs to go so it's K1cza15

M is always the character I need to remove and there will always be two digits in front of it, but I can't just remove M because it may appear elsewhere in the string and I need to keep it if it does. Any ideas? Thanks as always in advance. 

2 replies

Forum|alt.badge.img+14
  • Scholar
  • August 31, 2018

try 

m(?=.{2}$)

Forum|alt.badge.img+8
  • Author
  • Rookie
  • August 31, 2018

Worked like a charm. Thanks as always Marian you're the best!