
Small regex javascript code
- or -
Post a project like this$$
- Posted:
- Proposals: 2
- Remote
- #909124
- Expired
Description
Experience Level: Intermediate
General information for the website: Code tweak
Description of every page/module: Single edit to one line of JavaScript
Description of requirements/features: I need to tweak a function in my installation of TinyMCE. TinyMCE allows us to list groups of styles.
For example, the following would display a list of classes applied to DIVs or Ps.
{title: 'Block styles', filter: /^(div|p)\./}
I'd like to display a list of classes which:
- contain the word 'image' eg .imageleft
- contain the word 'img' eg.imgleft
- or are prefix by the tag img eg. img.leftborder
But I can't figure out the regex to do it :(
Extra notes:
Description of every page/module: Single edit to one line of JavaScript
Description of requirements/features: I need to tweak a function in my installation of TinyMCE. TinyMCE allows us to list groups of styles.
For example, the following would display a list of classes applied to DIVs or Ps.
{title: 'Block styles', filter: /^(div|p)\./}
I'd like to display a list of classes which:
- contain the word 'image' eg .imageleft
- contain the word 'img' eg.imgleft
- or are prefix by the tag img eg. img.leftborder
But I can't figure out the regex to do it :(
Extra notes:
Graham M.
100% (14)Projects Completed
17
Freelancers worked with
12
Projects awarded
57%
Last project
23 Dec 2022
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies