lowerOrNumToUpperPattern property

RegExp lowerOrNumToUpperPattern
final
RegExp('([a-z0-9])(?:•)*([A-Z])')

matches lowercase or numeric char to uppercase char

| uses the placeholder to replace/format matches in string

  • default:

The default placeholder can be overridden via setUp.placeholder

matches: - sybmolizes seperation of groups

  • helloWorld
  • oW
  • camelCase
  • lC
  • PascalCase
  • lC

does not match:

  • kebab-case
  • snake_case
  • Title Case

Implementation

static final lowerOrNumToUpperPattern =
    RegExp('([a-z0-9])(?:${getPlaceholder()})*([A-Z])');