Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Split Based on Multiple Words #5931

Copy link
Copy link
Open
@MohitVachhani

Description

@MohitVachhani
Issue body actions

For example:

const input = "apple-orange banana_grape";
const result = _.split(input, ['orange', 'banana']); 
// Expected result: ['apple-', ' grape']

However, this approach doesn’t seem to work. Is there currently any functionality in Lodash that allows splitting a string by multiple words?

Use Case:
This feature would be valuable when parsing text or documents where specific words serve as delimiters, especially in data extraction and text processing scenarios.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.