Less String Functions

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

Less String Function

Less supports the following string functions:


String Functions



Less string escape function

The Less string escape function is used to apply URL encoding to special characters found in the input string.


Less string e function

The Less string e function takes string as a parameter and returns its content without quotes.


Less string % format function

The Less string format function is used to format string with placeholders. The format function uses some parameters: string: It is used to format string with placeholders. anything*: It is used to provide values to replace placeholders.


Less string Replace function

The Less string replace function is used to replace a text with a string. The replace function uses some parameters: string: It searches the string and replace in. pattern: It searches the regular expression pattern. replacement: It replaces the string that matches the pattern.flags: These are optional regular expression flags.