Welcome Guest

Pages: 1
Regexp not working with Replace
MabiPostMarch 4, 2018, 07:29
Newbie
Posts: 2
Registered:
March 4, 2018, 12:13
Normal topicRegexp not working with Replace

Hi there

I'm trying to use the "Replace" command with regular expressions but I cannot get this work. Regexp are recognized all well in the "Regular Expression Tester" but within my actions regexp are not working. Do you have any idea what is wrong here (see screenshot).

My environment is:

- macOS Sierra Version 10.12.6 (16G1212)
- Yate Version 3.17.4.2 (6195.6131)

Regard
Mabi
Image

2MR2PostMarch 4, 2018, 07:55
Avatar photo
Administrator
Posts: 2083
Registered:
August 23, 2012, 19:27
Normal topicRe: Regexp not working with Replace

Had me feeling a little fuzzy on a Sunday morning with this. 🙂 The Replace statement does not process regular expressions. There is a statement called:

Regular Expression

in the Text category.

The Regular Expression statement can Replace, Return Matches and Return Ranges. You can also view the tester directly from the statement.

MabiPostMarch 4, 2018, 10:06
Newbie
Posts: 2
Registered:
March 4, 2018, 12:13
Normal topicRe: Regexp not working with Replace

Thank you for your super speedy reply. Worldclass!

You are right of course: it works fine when I use the function RegularExpression.

I was confused by the term "Escape Sequences" in the help text of the Replace function as I mixed that up with "Regular Expression Metacharacters".

Pages: 1
Mingle Forum by Cartpauj | Version: 1.1.0beta | Page loaded in: 0.015 seconds.