Hi Sibnarayan,

The word "\indent" is six characters (looks like 7) and starts with the 
single character "\i".

julia> length("\indent")
6

If you want your word to start with a backslash, you need to "escape" the 
backslash character like this "\\indent"

julia> println("\\indent")
\indent

julia> length("\\indent")
7

IF this is what you want, you can test that the word starts with a 
backslash with this:

julia> ismatch(r"^\\","\\indent")
true

Hope this helps :)

On Thursday, January 7, 2016 at 10:04:01 AM UTC+8, Sibnarayan Guria wrote:
>
> How to check the word "\indent"  starts with "\"
>

Reply via email to