Sublime Forum

Rookie coding question

#1

Hi there,

Embarrassing simple question ( i assume) What code is used in manipulating data in the find and replace bar? I just want to be able to a. reduce the number of decimal places, and extract numbers (that are 10 and 11th in position)

apologies for naivety

0 Likes

#2

The panels for finding text (including find and replace) use Regular Expressions.

Basically they’re special patterns that allow you to describe how to match text based on various rules. You can craft an expression that will not only match the number but store parts of what was matched to be used in the replacement text field.

0 Likes

#3

Thanks so much OdatNurd! I really appreciate it (and the rapid time of the reply)

0 Likes