- Code: Select all
abs(x) Returns the absolute value of x
acos(x) Returns the arccosine of x, in radians
asin(x) Returns the arcsine of x, in radians
atan(x) Returns the arctangent of x as a numeric value between -PI/2 and PI/2 radians
atan2(y,x) Returns the arctangent of the quotient of its arguments
ceil(x) Returns x, rounded upwards to the nearest integer
cos(x) Returns the cosine of x (x is in radians)
exp(x) Returns the value of Ex
floor(x) Returns x, rounded downwards to the nearest integer
log(x) Returns the natural logarithm (base E) of x
max(x,y,z,...,n) Returns the number with the highest value
min(x,y,z,...,n) Returns the number with the lowest value
pow(x,y) Returns the value of x to the power of y
random() Returns a random number between 0 and 1
round(x) Rounds x to the nearest integer
sin(x) Returns the sine of x (x is in radians)
sqrt(x) Returns the square root of x
tan(x) Returns the tangent of an angle
and want to do a Search/Replace using this regular expression. "(^.*?)\(.*$", using backreference #1 "$1" as replacement.
RegEx explanation:
- Code: Select all
// (^.*?)\(.*$
//
// Options: case insensitive
//
// Match the regular expression below and capture its match into backreference number 1 «(^.*?)»
// Assert position at the beginning of the string «^»
// Match any single character that is not a line break character «.*?»
// Between zero and unlimited times, as few times as possible, expanding as needed (lazy) «*?»
// Match the character “(” literally «\(»
// Match any single character that is not a line break character «.*»
// Between zero and unlimited times, as many times as possible, giving back as needed (greedy) «*»
// Assert position at the end of the string (or before the line break at the end of the string, if any) «$»
But instead of selecting the first "(" and anything to the end of the line, as expected. It just select/replaces everything to the end of the document.
Looks like search/replace with regular expressions only works on the entire editor content and not line by line.
Program used: WeBuilder 2015 v13.2.0.164