in reply to Defining Characters in Word Boundary?
is it possible to define the characters that '\b' matches? I am processing latex code, and their macro character space is \ a-zA-Z \. I would like to write
\\$keyword\b
Unless I'm understanding your intentions wrong, that's the purpose of \b.
Example: m/\bChi_2\b/
I don't think the underscore will cause you problems within the defined \b \b but I'm sure I'll be corrected shortly if I'm wrong. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Defining Characters in Word Boundary?
by ikegami (Patriarch) on Jan 19, 2011 at 23:17 UTC | |
by luis.roca (Deacon) on Jan 19, 2011 at 23:39 UTC | |
|
Re^2: Defining Characters in Word Boundary?
by ikegami (Patriarch) on Jan 21, 2011 at 01:42 UTC | |
by luis.roca (Deacon) on Jan 21, 2011 at 04:45 UTC | |
by ikegami (Patriarch) on Jan 21, 2011 at 07:12 UTC |