Package org.intellij.lang.annotations

## Annotation Type RegExp

-     @Retention(CLASS)
      @Target({METHOD,FIELD,PARAMETER,LOCAL_VARIABLE,ANNOTATION_TYPE})
      public @interface RegExp

  Specifies that an element of the program represents a string that is a regular expression text supported by `Pattern`. Code editors may use this annotation to enable syntax highlighting, code completion and other features inside the literals that assigned to the annotated variables, passed as arguments to the annotated parameters, or returned from the annotated methods.
  See Also:
    `Language`

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `@NonNls String` | `prefix` | A constant prefix that is assumed to be implicitly added before the regular expression.
    `@NonNls String` | `suffix` | A constant suffix that is assumed to be implicitly added after the regular expression.

- - ### Element Detail

    - #### prefix

          @NonNls
          @NonNls String prefix

      A constant prefix that is assumed to be implicitly added before the regular expression.
      Default:
        ""

  - - #### suffix

          @NonNls
          @NonNls String suffix

      A constant suffix that is assumed to be implicitly added after the regular expression.
      Default:
        ""