# regular expression using a variable

**URL:** <https://community.unix.com/t/regular-expression-using-a-variable/159030>\
**Category:** Shell Programming and Scripting\
**Created:** [January 24, 2006, 6:23pm UTC](https://community.unix.com/t/regular-expression-using-a-variable/159030 "2006-01-24T18:23:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![barribar](https://community.unix.com/letter_avatar/barribar/32/5_5575768a8748004e209b776fc1b2916d.png) [@barribar](https://community.unix.com/u/barribar)\
**Post date:** [January 24, 2006, 6:23pm UTC](https://community.unix.com/t/regular-expression-using-a-variable/159030/1 "2006-01-24T18:23:44Z")

</div>

hello,  
I use AIX with ISM PILOT, I want to match something with a varible like this :

$variable = 10 #this variable is the number of the job

"$variable STARTED" # the pattern

how can use this variable to match it with the word STARTED

Tanks
