RegularExpressions Object

This collection is accessed via the Preferences Object. It corresponds to the information configured on the Line Expressions options page. Each entry on that page corresponds to a RegularExpression Object member of this collection. Each such member represents a regular expression that is used to match unimportant text that you wish Merge to ignore when performing comparisons.

Properties

Countread-onlyIRegularExpressions

The number of items in this collection.

IDL [propget] HRESULT Count([out, retval] long* pValue)
.NET Int32 Count[get]

Itemread-onlyIRegularExpressions

Returns the item (not a copy) at the given index.

IDL [propget] HRESULT Item(
    [in] VARIANT index,
    [out, retval] IRegularExpression** pValue)
.NET RegularExpression get_Item(
    Object index)
  • index
    A zero-based integer index into the collection.

Methods

AddIRegularExpressions

Adds a copy of the item regularExpression to the end of the collection. Returns the index of the added item.

IDL HRESULT Add(
    [in] IRegularExpression* regularExpression,
    [out, retval] long* pValue)
.NET Int32 Add(
    RegularExpression regularExpression)
  • regularExpression
    The item to be added to the collection.

RemoveIRegularExpressions

Removes the item at the specified index.

IDL HRESULT Remove(
    [in] long index)
.NET void Remove(
    Int32 index)
  • index
    The index of the item to remove.