Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
alias regular_expressions {
|
||||
var %string = This is a string
|
||||
var %re = string$
|
||||
if ($regex(%string,%re) > 0) {
|
||||
echo -a Ends with string.
|
||||
}
|
||||
%re = \ba\b
|
||||
if ($regsub(%string,%re,another,%string) > 0) {
|
||||
echo -a Result 1: %string
|
||||
}
|
||||
%re = \b(another)\b
|
||||
echo -a Result 2: $regsubex(%string,%re,yet \1)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue